diff --git a/6502.S b/6502.S index 104cce2..a78536f 100644 --- a/6502.S +++ b/6502.S @@ -1525,7 +1525,7 @@ ope6: // INC - Zero Page ope8: // INX _fromReg RX _inc - _toAddr + _toReg RX _decode ope9: // SBC - Immediate diff --git a/test.c b/test.c index 9fd41a2..3adc8dd 100644 --- a/test.c +++ b/test.c @@ -20,7 +20,7 @@ void cpu6502_dump(uint32_t pc, uint32_t a, uint32_t x, uint32_t y, uint32_t sp, uint32_t sr) { uint8_t fp; __asm__("movs %0, r12": "=r"(fp)); - assert(pc < 0x1000); + assert(pc < 0x10000); assert(a < 0x100); assert(x < 0x100); assert(y < 0x100);