1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-13 01:29:57 +00:00

Increment stack pointer before poping.

This commit is contained in:
Radosław Kujawa 2017-01-20 23:16:02 +01:00
parent 86e00e651d
commit c083114c12

View File

@ -234,8 +234,8 @@ stack_pop(rk65c02emu_t *e)
{
uint8_t val;
val = bus_read_1(e->bus, STACK_START+e->regs.SP);
e->regs.SP++;
val = bus_read_1(e->bus, STACK_START+e->regs.SP);
return val;
}