mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-24 14:32:08 +00:00
We need to use the mach cpu
This commit is contained in:
parent
1de1e7788a
commit
fd8f36b34e
@ -8,6 +8,7 @@
|
|||||||
#include "apple2.h"
|
#include "apple2.h"
|
||||||
#include "apple2.draw.h"
|
#include "apple2.draw.h"
|
||||||
#include "apple2.mem.h"
|
#include "apple2.mem.h"
|
||||||
|
#include "mos6502.enums.h"
|
||||||
#include "mos6502.dis.h"
|
#include "mos6502.dis.h"
|
||||||
#include "objstore.h"
|
#include "objstore.h"
|
||||||
#include "option.h"
|
#include "option.h"
|
||||||
@ -184,9 +185,9 @@ apple2_boot(apple2 *mach)
|
|||||||
mos6502_dis_scan(mach->cpu, stdout, 0, mach->cpu->memory->size);
|
mos6502_dis_scan(mach->cpu, stdout, 0, mach->cpu->memory->size);
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu->P = INTERRUPT;
|
mach->cpu->P = MOS_INTERRUPT;
|
||||||
cpu->PC = (vm_16bit)vm_segment_get(mach->memory, 0xFFFC);
|
mach->cpu->PC = (vm_16bit)vm_segment_get(mach->memory, 0xFFFC);
|
||||||
cpu->S = 0;
|
mach->cpu->S = 0;
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user