From 68ff89ba0a36b7d5d57d64077dfbb477215fd74a Mon Sep 17 00:00:00 2001 From: "marko.lauke" Date: Fri, 13 Mar 2020 00:42:27 +0100 Subject: [PATCH] +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 729248e95..7df164cc3 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 a7b91ca9a..792b92f7c 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 0d191f6c7..8267d9550 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,