From c73a4e6559de0084d1ca82be276e59c2437c0164 Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Thu, 6 Dec 2012 18:10:58 +0000 Subject: [PATCH] Conventional RAM size DIP-SW too --- src/mess/drivers/pc9801.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mess/drivers/pc9801.c b/src/mess/drivers/pc9801.c index 45014467e88..7394446a80b 100644 --- a/src/mess/drivers/pc9801.c +++ b/src/mess/drivers/pc9801.c @@ -2664,6 +2664,11 @@ static INPUT_PORTS_START( pc9821 ) PORT_DIPNAME( 0x01, 0x00, "S-Dip SW Init" ) PORT_DIPLOCATION("SW1:1") PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + + PORT_MODIFY("DSW3") + PORT_DIPNAME( 0x40, 0x40, "Conventional RAM size" ) PORT_DIPLOCATION("SW3:7") + PORT_DIPSETTING( 0x40, "640 KB" ) + PORT_DIPSETTING( 0x00, "512 KB" ) INPUT_PORTS_END static const gfx_layout charset_8x8 = @@ -3449,8 +3454,8 @@ static MACHINE_CONFIG_START( pc9801rs, pc9801_state ) MCFG_FLOPPY_DRIVE_ADD("upd765_2hd:1", pc9801_floppies, "525hd", 0, pc9801_state::floppy_formats) MCFG_RAM_ADD(RAM_TAG) - MCFG_RAM_DEFAULT_SIZE("640K") - MCFG_RAM_EXTRA_OPTIONS("1664K,3712K,7808K") + MCFG_RAM_DEFAULT_SIZE("1664K") + MCFG_RAM_EXTRA_OPTIONS("640K,3712K,7808K") MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_REFRESH_RATE(60)