mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 08:30:55 +00:00
Change init routine to use peripheral function
This commit is contained in:
parent
0e0244162f
commit
8201117223
@ -73,7 +73,7 @@ apple2_create(int width, int height)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (apple2_mem_init_disk2_rom(mach) != OK) {
|
if (apple2_mem_init_peripheral_rom(mach) != OK) {
|
||||||
log_critical("Could not initialize disk2 ROM");
|
log_critical("Could not initialize disk2 ROM");
|
||||||
apple2_free(mach);
|
apple2_free(mach);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -215,8 +215,6 @@ apple2_reset(apple2 *mach)
|
|||||||
mach->cpu->P = MOS_INTERRUPT;
|
mach->cpu->P = MOS_INTERRUPT;
|
||||||
mach->cpu->PC = vm_segment_get16(mach->memory, 0xFFFC);
|
mach->cpu->PC = vm_segment_get16(mach->memory, 0xFFFC);
|
||||||
mach->cpu->S = 0;
|
mach->cpu->S = 0;
|
||||||
|
|
||||||
log_critical("At end of reset, PC = 0x%x", mach->cpu->PC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user