Initialize the PS/1 middle ROM file (F80000.BIN) if present.
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
int model;
|
int model;
|
||||||
|
|
||||||
rom_t high_rom;
|
rom_t mid_rom, high_rom;
|
||||||
|
|
||||||
uint8_t ps1_91,
|
uint8_t ps1_91,
|
||||||
ps1_92,
|
ps1_92,
|
||||||
@@ -300,6 +300,11 @@ ps1_setup(int model)
|
|||||||
io_sethandler(0x00e0, 2,
|
io_sethandler(0x00e0, 2,
|
||||||
ps1_read, NULL, NULL, ps1_write, NULL, NULL, ps);
|
ps1_read, NULL, NULL, ps1_write, NULL, NULL, ps);
|
||||||
|
|
||||||
|
if (rom_present("roms/machines/ibmps1_2121/F80000.BIN")) {
|
||||||
|
rom_init(&ps->mid_rom,
|
||||||
|
"roms/machines/ibmps1_2121/F80000.BIN",
|
||||||
|
0xf80000, 0x40000, 0x3ffff, 0, MEM_MAPPING_EXTERNAL);
|
||||||
|
}
|
||||||
rom_init(&ps->high_rom,
|
rom_init(&ps->high_rom,
|
||||||
"roms/machines/ibmps1_2121/FC0000.BIN",
|
"roms/machines/ibmps1_2121/FC0000.BIN",
|
||||||
0xfc0000, 0x40000, 0x3ffff, 0, MEM_MAPPING_EXTERNAL);
|
0xfc0000, 0x40000, 0x3ffff, 0, MEM_MAPPING_EXTERNAL);
|
||||||
|
Reference in New Issue
Block a user