From 6e30cc4153c8410cc78d61d26024ec7b6fab6502 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Fri, 8 Jun 2012 21:45:38 -0700 Subject: [PATCH] Wide instruction format for 65c02 --- src/Ophis/Opcodes.py | 6 ++++++ tools/opcodes/op65c02.txt | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Ophis/Opcodes.py b/src/Ophis/Opcodes.py index f99f53c..d3884db 100644 --- a/src/Ophis/Opcodes.py +++ b/src/Ophis/Opcodes.py @@ -335,10 +335,16 @@ c02extensions = { None, None, None, None, None, None, None], 'stz': [None, None, 0x64, 0x74, None, 0x9C, 0x9E, None, None, None, None, None, None, None, None], + 'stz.w': [None, None, None, None, None, 0x9C, 0x9E, None, + None, None, None, None, None, None, None], 'trb': [None, None, 0x14, None, None, 0x1C, None, None, None, None, None, None, None, None, None], + 'trb.w': [None, None, None, None, None, 0x1C, None, None, + None, None, None, None, None, None, None], 'tsb': [None, None, 0x04, None, None, 0x0C, None, None, None, None, None, None, None, None, None], + 'tsb.w': [None, None, None, None, None, 0x0C, None, None, + None, None, None, None, None, None, None], 'wai': [0xCB, None, None, None, None, None, None, None, None, None, None, None, None, None, None], } diff --git a/tools/opcodes/op65c02.txt b/tools/opcodes/op65c02.txt index 9072f27..ef1eb25 100644 --- a/tools/opcodes/op65c02.txt +++ b/tools/opcodes/op65c02.txt @@ -10,7 +10,7 @@ 09: ORA - Immediate 0A: ASL - Implied 0B: - 0C: TSB - Absolute + 0C: TSB - Absolute; TSB.W - Absolute 0D: ORA - Absolute 0E: ASL - Absolute 0F: BBR0 - Relative @@ -26,7 +26,7 @@ 19: ORA - Absolute, Y 1A: INA - Implied; INC - Implied 1B: - 1C: TRB - Absolute + 1C: TRB - Absolute; TRB.W - Absolute 1D: ORA - Absolute, X 1E: ASL - Absolute, X 1F: BBR1 - Relative @@ -154,9 +154,9 @@ 99: STA - Absolute, Y 9A: TXS - Implied 9B: - 9C: STZ - Absolute + 9C: STZ - Absolute; STZ.W - Absolute 9D: STA - Absolute, X - 9E: STZ - Absolute, X + 9E: STZ - Absolute, X; STZ.W - Absolute, X 9F: BBS1 - Relative A0: LDY - Immediate A1: LDA - (Zero Page, X)