diff --git a/include/apple2.mem.h b/include/apple2.mem.h index 8199727..89c8741 100644 --- a/include/apple2.mem.h +++ b/include/apple2.mem.h @@ -62,7 +62,6 @@ extern SEGMENT_READER(apple2_mem_zp_read); extern SEGMENT_WRITER(apple2_mem_zp_write); -extern int apple2_mem_init_peripheral_rom(apple2 *); extern int apple2_mem_init_sys_rom(apple2 *); extern void apple2_mem_map(apple2 *, vm_segment *); diff --git a/src/apple2.c b/src/apple2.c index f959c36..88d227b 100644 --- a/src/apple2.c +++ b/src/apple2.c @@ -87,12 +87,6 @@ apple2_create(int width, int height) apple2_mem_map(mach, mach->main); apple2_mem_map(mach, mach->aux); - if (apple2_mem_init_peripheral_rom(mach) != OK) { - log_critical("Could not initialize disk2 ROM"); - apple2_free(mach); - return NULL; - } - if (apple2_mem_init_sys_rom(mach) != OK) { log_critical("Could not initialize apple2 ROM"); apple2_free(mach); diff --git a/src/apple2.mem.c b/src/apple2.mem.c index 54abe80..17053bb 100644 --- a/src/apple2.mem.c +++ b/src/apple2.mem.c @@ -35,28 +35,6 @@ apple2_mem_map(apple2 *mach, vm_segment *segment) } } -/* - * Initialize the peripheral ROM ($C100 - $C7FF). - */ -int -apple2_mem_init_peripheral_rom(apple2 *mach) -{ - int err; - - // Let's copy beginning at the 1-slot offset in memory, but going - // all the way as far as the length of all peripheral ROM in memory. - err = vm_segment_copy_buf(mach->main, - objstore_apple2_peripheral_rom(), - APPLE2_PERIPHERAL_SLOT(1), 0, - APPLE2_PERIPHERAL_SIZE); - if (err != OK) { - log_critical("Could not copy apple2 peripheral rom"); - return ERR_BADFILE; - } - - return OK; -} - /* * I'm still a bit hazy on how this _should_ work, but this function * will copy as much as we can from the system rom into both main memory