cpu/decoder - Little conversion fix for ADD SP, e8

This commit is contained in:
madmaurice 2023-08-30 13:43:10 +02:00
parent 53daaeba6b
commit ef9bda4a30

View file

@ -456,7 +456,7 @@ void Cpu::executeInstruction()
state.stopped = true;
break;
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;
mcycles = 4;
break;