mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-23 23:32:45 +00:00
Move bank switch set up for the mem init functions.
This also changes bank_switch to mirror at boot what the reset function does later on. Without doing so, our init memory routines will fail.
This commit is contained in:
parent
24e6e0fd25
commit
fe0ed815a9
@ -66,6 +66,9 @@ apple2_create(int width, int height)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is more-or-less the same setup you do in apple2_reset().
|
||||||
|
apple2_set_bank_switch(mach, MEMORY_ROM | MEMORY_WRITE | MEMORY_RAM2);
|
||||||
|
|
||||||
// Set the read/write mappers for everything
|
// Set the read/write mappers for everything
|
||||||
apple2_mem_map(mach);
|
apple2_mem_map(mach);
|
||||||
|
|
||||||
@ -125,11 +128,6 @@ apple2_create(int width, int height)
|
|||||||
// We default to lo-res mode.
|
// We default to lo-res mode.
|
||||||
apple2_set_video(mach, VIDEO_LORES);
|
apple2_set_video(mach, VIDEO_LORES);
|
||||||
|
|
||||||
// At cold boot, we don't care what the bank switch is; the reset
|
|
||||||
// function will do the right thing, so let's default the flags to
|
|
||||||
// zero.
|
|
||||||
mach->bank_switch = 0;
|
|
||||||
|
|
||||||
// Let's install our bitmap font.
|
// Let's install our bitmap font.
|
||||||
mach->sysfont = vm_bitfont_create(mach->screen,
|
mach->sysfont = vm_bitfont_create(mach->screen,
|
||||||
objstore_apple2_sysfont(),
|
objstore_apple2_sysfont(),
|
||||||
|
Loading…
Reference in New Issue
Block a user