mirror of
https://github.com/pevans/erc-c.git
synced 2025-02-26 21:31:21 +00:00
Retrieve the 16-bit PC address.
This fixes a bug where we only got an 8-bit address from $FFFC and ignored the LSB at $FFFD.
This commit is contained in:
parent
70516a7f91
commit
d9527db033
@ -200,7 +200,7 @@ void
|
|||||||
apple2_reset(apple2 *mach)
|
apple2_reset(apple2 *mach)
|
||||||
{
|
{
|
||||||
mach->cpu->P = MOS_INTERRUPT;
|
mach->cpu->P = MOS_INTERRUPT;
|
||||||
mach->cpu->PC = (vm_16bit)vm_segment_get(mach->memory, 0xFFFC);
|
mach->cpu->PC = vm_segment_get16(mach->memory, 0xFFFC);
|
||||||
mach->cpu->S = 0;
|
mach->cpu->S = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user