cpu: correct opcode 0x22 to be "LD (HL+), A"

This commit is contained in:
2018-06-17 10:51:25 -07:00
parent c1f972c448
commit fb1deb05d5

View File

@@ -454,9 +454,8 @@ void lr35902_cycle(struct lr35902_state *cpu)
case 0x21: /* LD HL, d16 */ case 0x21: /* LD HL, d16 */
LD_D16(cpu, cpu->hl); LD_D16(cpu, cpu->hl);
break; break;
case 0x22: /* LD (HL-), A */ case 0x22: /* LD (HL+), A */
cpu->a = cpu->mem_read(cpu, cpu->hl); cpu->a = cpu->mem_read(cpu, cpu->hl++);
cpu->hl--;
break; break;
case 0x23: /* INC HL */ case 0x23: /* INC HL */
cpu->hl++; cpu->hl++;