spc700ds.c: fix disassembly of BRK opcode [Lord Nightmare, jwdonal]

This commit is contained in:
Jonathan Gevaryahu 2013-10-20 19:16:11 +00:00
parent 826d9bc6e3
commit cc9274b5ba
2 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,7 @@ INLINE void write_16_direct(spc700i_cpu *cpustate, uint address, uint value)
#define OPER_16_XII(cpustate) read_16_XI(EA_XII(cpustate))
#define OPER_16_YI(cpustate) read_16_YI(EA_YI(cpustate))
/* Effective Address Caluclations */
/* Effective Address Calculations */
INLINE uint EA_IMM(spc700i_cpu *cpustate) {return REG_PC++;}
INLINE uint EA_IMM16(spc700i_cpu *cpustate) {REG_PC += 2; return REG_PC-2;}
INLINE uint EA_ABS(spc700i_cpu *cpustate) {return OPER_16_IMM(cpustate);}

View File

@ -80,7 +80,7 @@ static const opcode_struct g_opcodes[256] =
/* 0C */ {ASL , {ABS , IMP }},
/* 0D */ {PUSH , {PSW , IMP }},
/* 0E */ {TSET1 , {ABS , IMP }},
/* 0F */ {BRK , {IMM , IMP }},
/* 0F */ {BRK , {IMP , IMP }},
/* 10 */ {BPL , {REL , IMP }},
/* 11 */ {TCALL , {N1 , IMP }},
/* 12 */ {CLR1 , {DP0 , IMP }},