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:
@@ -372,7 +372,7 @@ void lr35902_cycle(struct lr35902_state *cpu)
|
|||||||
INC_8(cpu, cpu->c);
|
INC_8(cpu, cpu->c);
|
||||||
break;
|
break;
|
||||||
case 0x0d: /* DEC C */
|
case 0x0d: /* DEC C */
|
||||||
DEC_8(cpu, cpu->d);
|
DEC_8(cpu, cpu->c);
|
||||||
break;
|
break;
|
||||||
case 0x0e: /* LD C, d8 */
|
case 0x0e: /* LD C, d8 */
|
||||||
LD_D8(cpu, cpu->c);
|
LD_D8(cpu, cpu->c);
|
||||||
|
|||||||
Reference in New Issue
Block a user