fix incorrect argument for INC
Perhaps a refactor is in order for the arguments to the opcodes.
This commit is contained in:
parent
30fe238d42
commit
718f89c9c5
3
cpu.c
3
cpu.c
@ -1274,7 +1274,7 @@ interpret(void)
|
|||||||
break;
|
break;
|
||||||
case 0xee:
|
case 0xee:
|
||||||
mode = AM_ABS;
|
mode = AM_ABS;
|
||||||
arg = opcode_arg(mode);
|
arg = opcode_mem(mode);
|
||||||
inc(arg);
|
inc(arg);
|
||||||
cycles += 6;
|
cycles += 6;
|
||||||
printf("INC");
|
printf("INC");
|
||||||
@ -1310,7 +1310,6 @@ interpret(void)
|
|||||||
mem = peek16(regs.pc);
|
mem = peek16(regs.pc);
|
||||||
deref = peek(mem);
|
deref = peek(mem);
|
||||||
arg = opcode_mem(mode);
|
arg = opcode_mem(mode);
|
||||||
//jmp(arg);
|
|
||||||
jmp(deref);
|
jmp(deref);
|
||||||
cycles += 6;
|
cycles += 6;
|
||||||
printf("JMP");
|
printf("JMP");
|
||||||
|
Loading…
Reference in New Issue
Block a user