mirror of https://github.com/mlaux/gb6.git
it goes off the rails at the gameplay screen on tetris
This commit is contained in:
parent
bbb398f524
commit
6ab729f377
|
@ -705,6 +705,9 @@ void cpu_step(struct cpu *cpu)
|
||||||
write8(cpu, read_hl(cpu), cpu->a);
|
write8(cpu, read_hl(cpu), cpu->a);
|
||||||
write_hl(cpu, read_hl(cpu) - 1);
|
write_hl(cpu, read_hl(cpu) - 1);
|
||||||
break;
|
break;
|
||||||
|
case 0x39: // ADD HL, SP
|
||||||
|
add16(cpu, cpu->sp);
|
||||||
|
break;
|
||||||
case 0xc0: // RET NZ
|
case 0xc0: // RET NZ
|
||||||
if (!flag_isset(cpu, FLAG_ZERO)) {
|
if (!flag_isset(cpu, FLAG_ZERO)) {
|
||||||
cpu->pc = pop(cpu);
|
cpu->pc = pop(cpu);
|
||||||
|
|
Loading…
Reference in New Issue