1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-28 01:29:37 +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:
Peter Evans 2018-01-05 16:15:13 -06:00
parent 70516a7f91
commit d9527db033

View File

@ -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;
}