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:
parent
86e00e651d
commit
c083114c12
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user