mirror of
https://github.com/pevans/erc-c.git
synced 2025-01-04 22:30:18 +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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user