Remember that Qt and Win versions have different disassembly code

This commit is contained in:
TheRealQuantam 2024-04-16 18:40:09 -07:00
parent fa6e4411dd
commit 1028732d84
1 changed files with 3 additions and 5 deletions

View File

@ -337,10 +337,8 @@ char *Disassemble(int addr, uint8 *opcode) {
case 0xE1: chr = "SBC"; goto _indirectx; case 0xE1: chr = "SBC"; goto _indirectx;
_indirectx: _indirectx:
indirectX(tmp); indirectX(tmp);
indReg = 'X';
_indirect: sb << chr << " (" << sb_addr(opcode[1], 2) << ",X) @ " << sb_addr(tmp) << " = " << sb_lit(GetMem(tmp));
sb << chr << " (" << sb_addr(opcode[1], 2) << ',' << indReg << ") @ " << sb_addr(tmp) << " = " << sb_lit(GetMem(tmp));
break; break;
//Zero Page //Zero Page
@ -445,9 +443,9 @@ char *Disassemble(int addr, uint8 *opcode) {
case 0xF1: chr = "SBC"; goto _indirecty; case 0xF1: chr = "SBC"; goto _indirecty;
_indirecty: _indirecty:
indirectY(tmp); indirectY(tmp);
indReg = 'Y';
goto _indirect; sb << chr << " (" << sb_addr(opcode[1], 2) << "),Y @ " << sb_addr(tmp) << " = " << sb_lit(GetMem(tmp));
break;
//Zero Page,X //Zero Page,X
case 0x15: chr = "ORA"; goto _zeropagex; case 0x15: chr = "ORA"; goto _zeropagex;