mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-11 14:30:08 +00:00
Remove deadc0de since ROMs should be pre-loaded
This commit is contained in:
parent
28aea0bf14
commit
0470cb8907
17
src/disk.c
17
src/disk.c
@ -26,7 +26,6 @@ static FILE *test_write_fp = NULL;
|
||||
#endif
|
||||
|
||||
extern uint8_t slot6_rom[256];
|
||||
extern bool slot6_rom_loaded;
|
||||
|
||||
drive_t disk6;
|
||||
|
||||
@ -665,22 +664,6 @@ void disk_io_initialize(unsigned int slot) {
|
||||
assert(slot == 6);
|
||||
|
||||
/* load Disk II rom */
|
||||
if (!slot6_rom_loaded) {
|
||||
snprintf(temp, PATH_MAX, "%s/slot6.rom", system_path);
|
||||
if ((f = fopen( temp, "r" )) == NULL) {
|
||||
printf("Cannot find file '%s'.\n",temp);
|
||||
exit( 0 );
|
||||
}
|
||||
|
||||
if (fread(slot6_rom, 0x100, 1, f) != 0x100) {
|
||||
// error
|
||||
#warning FIXME TODO ... slot6 rom is read elsewhere
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
slot6_rom_loaded = true;
|
||||
}
|
||||
|
||||
memcpy(apple_ii_64k[0] + 0xC600, slot6_rom, 0x100);
|
||||
|
||||
// disk softswitches
|
||||
|
20
src/misc.c
20
src/misc.c
@ -21,7 +21,6 @@
|
||||
---------------------------------- */
|
||||
|
||||
extern uint8_t apple_iie_rom[32768];
|
||||
extern bool iie_rom_loaded;
|
||||
|
||||
bool do_logging = true; // also controlled by NDEBUG
|
||||
FILE *error_log = NULL;
|
||||
@ -471,25 +470,6 @@ void c_initialize_apple_ii_memory()
|
||||
language_banks[0][i] = language_banks[1][i] = 0;
|
||||
}
|
||||
|
||||
if (!iie_rom_loaded)
|
||||
{
|
||||
char temp[PATH_MAX];
|
||||
snprintf(temp, PATH_MAX, "%s/apple_IIe.rom", system_path);
|
||||
if ((f = fopen(temp, "r")) == NULL)
|
||||
{
|
||||
printf("Cannot find file '%s'.\n",temp);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (fread(apple_iie_rom, 32768, 1, f) != 32768)
|
||||
{
|
||||
// ERROR ...
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
iie_rom_loaded = 1;
|
||||
}
|
||||
|
||||
/* load the rom from 0xC000, slot rom main, internal rom aux */
|
||||
for (i = 0xC000; i < 0x10000; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user