Blob Blame History Raw
From 68ff89ba0a36b7d5d57d64077dfbb477215fd74a Mon Sep 17 00:00:00 2001
From: "marko.lauke" <marko.lauke@googlemail.com>
Date: Fri, 13 Mar 2020 00:42:27 +0100
Subject: [PATCH 161/170] +cc65 inline asm stp mnemonic support

---
 src/cc65/codeent.c | 3 +++
 src/cc65/opcodes.c | 7 +++++++
 src/cc65/opcodes.h | 1 +
 3 files changed, 11 insertions(+)

diff --git a/src/cc65/codeent.c b/src/cc65/codeent.c
index 729248e9..7df164cc 100644
--- a/src/cc65/codeent.c
+++ b/src/cc65/codeent.c
@@ -615,6 +615,9 @@ void CE_GenRegInfo (CodeEntry* E, RegContents* InputRegs)
         case OP65_BRK:
             break;
 
+        case OP65_STP:
+            break;
+
         case OP65_BVC:
             break;
 
diff --git a/src/cc65/opcodes.c b/src/cc65/opcodes.c
index a7b91ca9..792b92f7 100644
--- a/src/cc65/opcodes.c
+++ b/src/cc65/opcodes.c
@@ -502,6 +502,13 @@ const OPCDesc OPCTable[OP65_COUNT] = {
         REG_NONE,                               /* chg */
         OF_STORE                                /* flags */
     },
+    {   OP65_STP,                               /* opcode */
+        "stp",                                  /* mnemonic */
+        1,                                      /* size */
+        REG_NONE,                               /* use */
+        REG_NONE,                               /* chg */
+        OF_NONE                                 /* flags */
+    },
     {   OP65_STX,                               /* opcode */
         "stx",                                  /* mnemonic */
         0,                                      /* size */
diff --git a/src/cc65/opcodes.h b/src/cc65/opcodes.h
index 0d191f6c..8267d955 100644
--- a/src/cc65/opcodes.h
+++ b/src/cc65/opcodes.h
@@ -114,6 +114,7 @@ typedef enum {
     OP65_SED,
     OP65_SEI,
     OP65_STA,
+    OP65_STP, /* 65c02, 65816 stop */
     OP65_STX,
     OP65_STY,
     OP65_STZ,
-- 
2.26.0