cpu: fix DEC C to decrement the correct register

Now the CPU runs to the end of the boot ROM
This commit is contained in:
2018-06-17 10:50:36 -07:00
parent 0a3340f4fc
commit c1f972c448

View File

@@ -372,7 +372,7 @@ void lr35902_cycle(struct lr35902_state *cpu)
INC_8(cpu, cpu->c);
break;
case 0x0d: /* DEC C */
DEC_8(cpu, cpu->d);
DEC_8(cpu, cpu->c);
break;
case 0x0e: /* LD C, d8 */
LD_D8(cpu, cpu->c);