Add: proper OPCODE_NOP enum

This commit is contained in:
michaelangel007 2014-12-11 10:00:51 -08:00
parent 03b43bf388
commit a509cc511a
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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.