1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-08-20 09:29:01 +00:00

We need to use the mach cpu

This commit is contained in:
Peter Evans 2018-01-05 14:19:13 -06:00
parent 1de1e7788a
commit fd8f36b34e

View File

@ -8,6 +8,7 @@
#include "apple2.h"
#include "apple2.draw.h"
#include "apple2.mem.h"
#include "mos6502.enums.h"
#include "mos6502.dis.h"
#include "objstore.h"
#include "option.h"
@ -184,9 +185,9 @@ apple2_boot(apple2 *mach)
mos6502_dis_scan(mach->cpu, stdout, 0, mach->cpu->memory->size);
}
cpu->P = INTERRUPT;
cpu->PC = (vm_16bit)vm_segment_get(mach->memory, 0xFFFC);
cpu->S = 0;
mach->cpu->P = MOS_INTERRUPT;
mach->cpu->PC = (vm_16bit)vm_segment_get(mach->memory, 0xFFFC);
mach->cpu->S = 0;
return OK;
}