cpu/decoder - Little conversion fix for ADD SP, e8
This commit is contained in:
parent
53daaeba6b
commit
ef9bda4a30
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ void Cpu::executeInstruction()
|
||||||
state.stopped = true;
|
state.stopped = true;
|
||||||
break;
|
break;
|
||||||
case 0xE8: // ADD SP, e8
|
case 0xE8: // ADD SP, e8
|
||||||
add16(*this, state.SP, state.SP, (s8)readPC8());
|
add16(*this, state.SP, state.SP, (s32)((s8)readPC8()));
|
||||||
state.zero = false;
|
state.zero = false;
|
||||||
mcycles = 4;
|
mcycles = 4;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue