From a509cc511a08609ba82dd0665f93913221480583 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Thu, 11 Dec 2014 10:00:51 -0800 Subject: [PATCH] Add: proper OPCODE_NOP enum --- source/Debugger/Debugger_Assembler.cpp | 2 +- source/Debugger/Debugger_Types.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Debugger/Debugger_Assembler.cpp b/source/Debugger/Debugger_Assembler.cpp index 98dab54b..63a46f81 100644 --- a/source/Debugger/Debugger_Assembler.cpp +++ b/source/Debugger/Debugger_Assembler.cpp @@ -537,7 +537,7 @@ int _6502_GetOpmodeOpbyte ( const int nBaseAddress, int & iOpmode_, int & nOpby */ //iOpcode_ = NUM_OPCODES; // Don't have valid opcodes ... we have data ! // iOpcode_ = (int)( pData ); // HACK: pass pData back to caller ... - iOpcode_ = 0xEA; // OP_NOP + iOpcode_ = OPCODE_NOP; } #if _DEBUG diff --git a/source/Debugger/Debugger_Types.h b/source/Debugger/Debugger_Types.h index c3871396..b96d4b88 100644 --- a/source/Debugger/Debugger_Types.h +++ b/source/Debugger/Debugger_Types.h @@ -1050,6 +1050,8 @@ const DisasmData_t* pDisasmData; // If != NULL then bytes are marked up as data OPCODE_JMP_A = 0x4C, // Absolute OPCODE_JMP_NA = 0x6C, // Indirect Absolute OPCODE_JMP_IAX = 0x7C, // Indexed (Absolute Indirect, X) + + OPCODE_NOP = 0xEA, // No operation }; // Note: "int" causes overflow when profiling for any amount of time.