diff options
Diffstat (limited to 'src/mess/drivers')
-rw-r--r-- | src/mess/drivers/asst128.c | 2 | ||||
-rw-r--r-- | src/mess/drivers/bbc.c | 128 | ||||
-rw-r--r-- | src/mess/drivers/besta.c | 18 | ||||
-rw-r--r-- | src/mess/drivers/canon_s80.c | 4 | ||||
-rw-r--r-- | src/mess/drivers/decwritr.c | 2 | ||||
-rw-r--r-- | src/mess/drivers/dvk_kcgd.c | 68 | ||||
-rw-r--r-- | src/mess/drivers/force68k.c | 146 | ||||
-rw-r--r-- | src/mess/drivers/hk68v10.c | 110 | ||||
-rw-r--r-- | src/mess/drivers/hp64k.c | 4 | ||||
-rw-r--r-- | src/mess/drivers/lg-dvd.c | 2 | ||||
-rw-r--r-- | src/mess/drivers/mps1230.c | 10 | ||||
-rw-r--r-- | src/mess/drivers/mvme350.c | 100 | ||||
-rw-r--r-- | src/mess/drivers/mzr8105.c | 188 | ||||
-rw-r--r-- | src/mess/drivers/n64.c | 2 | ||||
-rw-r--r-- | src/mess/drivers/pc9801.c | 4 | ||||
-rw-r--r-- | src/mess/drivers/segapico.c | 20 | ||||
-rw-r--r-- | src/mess/drivers/squale.c | 90 | ||||
-rw-r--r-- | src/mess/drivers/zapcomputer.c | 184 |
18 files changed, 541 insertions, 541 deletions
diff --git a/src/mess/drivers/asst128.c b/src/mess/drivers/asst128.c index 60c3dc152c7..0aab5a981d7 100644 --- a/src/mess/drivers/asst128.c +++ b/src/mess/drivers/asst128.c @@ -108,7 +108,7 @@ static MACHINE_CONFIG_START( asst128, asst128_state ) asst128_mb_device::static_set_cputag(*device, "maincpu"); MCFG_DEVICE_INPUT_DEFAULTS(asst128) -// MCFG_DEVICE_REMOVE("mb:dma8237") +// MCFG_DEVICE_REMOVE("mb:dma8237") MCFG_DEVICE_REMOVE("mb:cassette") MCFG_CASSETTE_ADD("mb:cassette") diff --git a/src/mess/drivers/bbc.c b/src/mess/drivers/bbc.c index 437e6545cb1..d60964282ab 100644 --- a/src/mess/drivers/bbc.c +++ b/src/mess/drivers/bbc.c @@ -143,7 +143,7 @@ static ADDRESS_MAP_START( bbca_mem, AS_PROGRAM, 8, bbc_state ) AM_RANGE(0x8000, 0xbfff) AM_READ_BANK("bank4") AM_WRITE(bbc_memoryb4_w) /* 8000-bfff Paged ROM */ AM_RANGE(0xc000, 0xfbff) AM_READ_BANK("bank7") /* c000-fbff OS ROM */ AM_RANGE(0xfc00, 0xfdff) AM_NOP /* fc00-fdff FRED & JIM Pages */ - /* fe00-feff SHEILA Address Page */ + /* fe00-feff SHEILA Address Page */ AM_RANGE(0xfe00, 0xfe00) AM_MIRROR(0x06) AM_DEVREADWRITE("mc6845", mc6845_device, status_r, address_w) /* fe00-fe07 6845 CRTC Video controller */ AM_RANGE(0xfe01, 0xfe01) AM_MIRROR(0x06) AM_DEVREADWRITE("mc6845", mc6845_device, register_r, register_w) AM_RANGE(0xfe08, 0xfe08) AM_MIRROR(0x06) AM_DEVREADWRITE("acia6850", acia6850_device, status_r, control_w) /* fe08-fe0F 6850 ACIA Serial controller */ @@ -151,9 +151,9 @@ static ADDRESS_MAP_START( bbca_mem, AS_PROGRAM, 8, bbc_state ) AM_RANGE(0xfe10, 0xfe17) AM_READWRITE(bbc_fe_r, bbc_SerialULA_w) /* fe10-fe17 Serial ULA Serial system chip */ AM_RANGE(0xfe18, 0xfe1f) AM_NOP /* fe18-fe1f INTOFF/STATID # ECONET Interrupt Off / ID No. */ AM_RANGE(0xfe20, 0xfe2f) AM_WRITE(bbc_videoULA_w) /* R: fe20-fe2f INTON # ECONET Interrupt On */ - /* W: fe20-fe2f Video ULA Video system chip */ + /* W: fe20-fe2f Video ULA Video system chip */ AM_RANGE(0xfe30, 0xfe3f) AM_READWRITE(bbc_fe_r, bbc_page_selecta_w) /* R: fe30-fe3f NC Not Connected */ - /* W: fe30-fe3f 84LS161 Paged ROM selector */ + /* W: fe30-fe3f 84LS161 Paged ROM selector */ AM_RANGE(0xfe40, 0xfe5f) AM_DEVREADWRITE("via6522_0", via6522_device, read, write) /* fe40-fe5f 6522 VIA SYSTEM VIA */ AM_RANGE(0xfe60, 0xfe7f) AM_NOP /* fe60-fe7f 6522 VIA # USER VIA */ AM_RANGE(0xfe80, 0xfe9f) AM_NOP /* fe80-fe9f 8271/1770 FDC # Floppy disc controller */ @@ -169,7 +169,7 @@ static ADDRESS_MAP_START( bbc_base, AS_PROGRAM, 8, bbc_state ) AM_RANGE(0xc000, 0xfbff) AM_READ_BANK("bank7") /* c000-fbff OS ROM */ AM_RANGE(0xfc00, 0xfdff) AM_NOP /* fc00-fdff FRED & JIM Pages */ - /* fe00-feff SHEILA Address Page */ + /* fe00-feff SHEILA Address Page */ AM_RANGE(0xfe00, 0xfe00) AM_MIRROR(0x06) AM_DEVREADWRITE("mc6845", mc6845_device, status_r, address_w) /* fe00-fe07 6845 CRTC Video controller */ AM_RANGE(0xfe01, 0xfe01) AM_MIRROR(0x06) AM_DEVREADWRITE("mc6845", mc6845_device, register_r, register_w) AM_RANGE(0xfe08, 0xfe08) AM_MIRROR(0x06) AM_DEVREADWRITE("acia6850", acia6850_device, status_r, control_w) /* fe08-fe0F 6850 ACIA Serial controller */ @@ -177,10 +177,10 @@ static ADDRESS_MAP_START( bbc_base, AS_PROGRAM, 8, bbc_state ) AM_RANGE(0xfe10, 0xfe17) AM_READWRITE(bbc_fe_r, bbc_SerialULA_w) /* fe10-fe17 Serial ULA Serial system chip */ AM_RANGE(0xfe18, 0xfe1f) AM_READ_PORT("S11") /* fe18-fe1f INTOFF/STATID ECONET Interrupt Off / ID No. */ AM_RANGE(0xfe20, 0xfe2f) AM_WRITE(bbc_videoULA_w) /* R: fe20-fe2f INTON ECONET Interrupt On */ - /* W: fe20-fe2f Video ULA Video system chip */ + /* W: fe20-fe2f Video ULA Video system chip */ AM_RANGE(0xfe40, 0xfe5f) AM_DEVREADWRITE("via6522_0", via6522_device, read, write) /* fe40-fe5f 6522 VIA SYSTEM VIA */ AM_RANGE(0xfe60, 0xfe7f) AM_DEVREADWRITE("via6522_1", via6522_device, read, write) /* fe60-fe7f 6522 VIA USER VIA */ - /* fe80-fe9f FDC Floppy disc controller */ + /* fe80-fe9f FDC Floppy disc controller */ AM_RANGE(0xfea0, 0xfebf) AM_READ(bbc_fe_r) /* fea0-febf 68B54 ADLC ECONET controller */ AM_RANGE(0xfec0, 0xfedf) AM_DEVREADWRITE("upd7002", upd7002_device, read, write) /* fec0-fedf uPD7002 Analogue to digital converter */ AM_RANGE(0xfee0, 0xfeff) AM_READ(bbc_fe_r) /* fee0-feff Tube ULA Tube system interface */ @@ -193,7 +193,7 @@ static ADDRESS_MAP_START( bbcb_mem, AS_PROGRAM, 8, bbc_state ) AM_RANGE(0x4000, 0x7fff) AM_READ_BANK("bank3") AM_WRITE(bbc_memoryb3_w) /* 4000-7fff Regular Ram */ AM_RANGE(0x8000, 0xbfff) AM_READ_BANK("bank4") AM_WRITE(bbc_memoryb4_w) /* 8000-bfff Paged ROM */ AM_RANGE(0xfe30, 0xfe3f) AM_READWRITE(bbc_fe_r, bbc_page_selectb_w) /* R: fe30-fe3f NC Not Connected */ - /* W: fe30-fe3f 84LS161 Paged ROM selector */ + /* W: fe30-fe3f 84LS161 Paged ROM selector */ AM_RANGE(0xfe80, 0xfe83) AM_DEVICE("i8271" , i8271_device, map) /* fe80-fe9f 8271 FDC Floppy disc controller */ AM_RANGE(0xfe84, 0xfe9f) AM_DEVREADWRITE("i8271", i8271_device, data_r, data_w) /* fe80-fe9f 8271 FDC Floppy disc controller */ AM_IMPORT_FROM(bbc_base) @@ -205,7 +205,7 @@ static ADDRESS_MAP_START(bbcb1770_mem, AS_PROGRAM, 8, bbc_state) AM_RANGE(0x4000, 0x7fff) AM_READ_BANK("bank3") AM_WRITE(bbc_memoryb3_w) /* 4000-7fff Regular Ram */ AM_RANGE(0x8000, 0xbfff) AM_READ_BANK("bank4") AM_WRITE(bbc_memoryb4_w) /* 8000-bfff Paged ROM */ AM_RANGE(0xfe30, 0xfe3f) AM_READWRITE(bbc_fe_r, bbc_page_selectb_w) /* R: fe30-fe3f NC Not Connected */ - /* W: fe30-fe3f 84LS161 Paged ROM selector */ + /* W: fe30-fe3f 84LS161 Paged ROM selector */ AM_RANGE(0xfe80, 0xfe83) AM_WRITE(bbc_wd1770_status_w) /* fe80-fe83 1770 FDC Drive control register */ AM_RANGE(0xfe84, 0xfe9f) AM_DEVREADWRITE("wd1770", wd1770_t, read, write) /* fe84-fe9f 1770 FDC Floppy disc controller */ AM_IMPORT_FROM(bbc_base) @@ -218,7 +218,7 @@ static ADDRESS_MAP_START( bbcbp_mem, AS_PROGRAM, 8, bbc_state ) AM_RANGE(0x8000, 0xafff) AM_READ_BANK("bank4") AM_WRITE(bbc_memorybp4_w) /* 8000-afff Paged ROM or 12K of SWRAM */ AM_RANGE(0xb000, 0xbfff) AM_READ_BANK("bank6") /* b000-bfff Rest of paged ROM area */ AM_RANGE(0xfe30, 0xfe3f) AM_READWRITE(bbc_fe_r, bbc_page_selectbp_w) /* R: fe30-fe3f NC Not Connected */ - /* W: fe30-fe3f 84LS161 Paged ROM selector */ + /* W: fe30-fe3f 84LS161 Paged ROM selector */ AM_RANGE(0xfe80, 0xfe83) AM_WRITE(bbc_wd1770_status_w) /* fe80-fe83 1770 FDC Drive control register */ AM_RANGE(0xfe84, 0xfe9f) AM_DEVREADWRITE("wd1770", wd1770_t, read, write) /* fe84-fe9f 1770 FDC Floppy disc controller */ AM_IMPORT_FROM(bbc_base) @@ -231,7 +231,7 @@ static ADDRESS_MAP_START( bbcbp128_mem, AS_PROGRAM, 8, bbc_state ) AM_RANGE(0x8000, 0xafff) AM_READ_BANK("bank4") AM_WRITE(bbc_memorybp4_128_w) /* 8000-afff Paged ROM or 12K of SWRAM */ AM_RANGE(0xb000, 0xbfff) AM_READ_BANK("bank6") AM_WRITE(bbc_memorybp6_128_w) /* b000-bfff Rest of paged ROM area */ AM_RANGE(0xfe30, 0xfe3f) AM_READWRITE(bbc_fe_r, bbc_page_selectbp_w) /* R: fe30-fe3f NC Not Connected */ - /* W: fe30-fe3f 84LS161 Paged ROM selector */ + /* W: fe30-fe3f 84LS161 Paged ROM selector */ AM_RANGE(0xfe80, 0xfe83) AM_WRITE(bbc_wd1770_status_w) /* fe80-fe83 1770 FDC Drive control register */ AM_RANGE(0xfe84, 0xfe9f) AM_DEVREADWRITE("wd1770", wd1770_t, read, write) /* fe84-fe9f 1770 FDC Floppy disc controller */ AM_IMPORT_FROM(bbc_base) @@ -244,7 +244,7 @@ static ADDRESS_MAP_START( reutapm_mem, AS_PROGRAM, 8, bbc_state ) AM_RANGE(0x8000, 0xafff) AM_READ_BANK("bank4") AM_WRITE(bbc_memorybp4_w) /* 8000-afff Paged ROM or 12K of SWRAM */ AM_RANGE(0xb000, 0xbfff) AM_READ_BANK("bank6") /* b000-bfff Rest of paged ROM area */ AM_RANGE(0xfe30, 0xfe3f) AM_READWRITE(bbc_fe_r, bbc_page_selectbp_w) /* R: fe30-fe3f NC Not Connected */ - /* W: fe30-fe3f 84LS161 Paged ROM selector */ + /* W: fe30-fe3f 84LS161 Paged ROM selector */ AM_RANGE(0xfe80, 0xfe83) AM_NOP /* fe80-fe83 1770 FDC Drive control register */ AM_RANGE(0xfe84, 0xfe9f) AM_NOP /* fe84-fe9f 1770 FDC Floppy disc controller */ AM_IMPORT_FROM(bbc_base) @@ -490,7 +490,7 @@ static INPUT_PORTS_START(bbc_dipswitch) PORT_DIPNAME(0x01, 0x01, "Screen Mode") PORT_DIPLOCATION("KBD:6") PORT_DIPSETTING( 0x00, "+0" ) PORT_DIPSETTING( 0x01, "+4" ) - + PORT_MODIFY("COL8") PORT_DIPNAME(0x01, 0x01, "Screen Mode") PORT_DIPLOCATION("KBD:7") PORT_DIPSETTING( 0x00, "+0" ) @@ -506,57 +506,57 @@ INPUT_PORTS_END static INPUT_PORTS_START(bbc_links) PORT_START("S11") PORT_DIPNAME(0xff, 0xfe, "Econet ID") PORT_DIPLOCATION("S11:1,2,3,4,5,6,7,8") - PORT_DIPSETTING( 0x00, "0" ) PORT_DIPSETTING( 0x01, "1" ) PORT_DIPSETTING( 0x02, "2" ) PORT_DIPSETTING( 0x03, "3" ) PORT_DIPSETTING( 0x04, "4" ) - PORT_DIPSETTING( 0x05, "5" ) PORT_DIPSETTING( 0x06, "6" ) PORT_DIPSETTING( 0x07, "7" ) PORT_DIPSETTING( 0x08, "8" ) PORT_DIPSETTING( 0x09, "9" ) - PORT_DIPSETTING( 0x0a, "10" ) PORT_DIPSETTING( 0x0b, "11" ) PORT_DIPSETTING( 0x0c, "12" ) PORT_DIPSETTING( 0x0d, "13" ) PORT_DIPSETTING( 0x0e, "14" ) - PORT_DIPSETTING( 0x0f, "15" ) PORT_DIPSETTING( 0x10, "16" ) PORT_DIPSETTING( 0x11, "17" ) PORT_DIPSETTING( 0x12, "18" ) PORT_DIPSETTING( 0x13, "19" ) - PORT_DIPSETTING( 0x14, "20" ) PORT_DIPSETTING( 0x15, "21" ) PORT_DIPSETTING( 0x16, "22" ) PORT_DIPSETTING( 0x17, "23" ) PORT_DIPSETTING( 0x18, "24" ) - PORT_DIPSETTING( 0x19, "25" ) PORT_DIPSETTING( 0x1a, "26" ) PORT_DIPSETTING( 0x1b, "27" ) PORT_DIPSETTING( 0x1c, "28" ) PORT_DIPSETTING( 0x1d, "29" ) - PORT_DIPSETTING( 0x1e, "30" ) PORT_DIPSETTING( 0x1f, "31" ) PORT_DIPSETTING( 0x20, "32" ) PORT_DIPSETTING( 0x21, "33" ) PORT_DIPSETTING( 0x22, "34" ) - PORT_DIPSETTING( 0x23, "35" ) PORT_DIPSETTING( 0x24, "36" ) PORT_DIPSETTING( 0x25, "37" ) PORT_DIPSETTING( 0x26, "38" ) PORT_DIPSETTING( 0x27, "39" ) - PORT_DIPSETTING( 0x28, "40" ) PORT_DIPSETTING( 0x29, "41" ) PORT_DIPSETTING( 0x2a, "42" ) PORT_DIPSETTING( 0x2b, "43" ) PORT_DIPSETTING( 0x2c, "44" ) - PORT_DIPSETTING( 0x2d, "45" ) PORT_DIPSETTING( 0x2e, "46" ) PORT_DIPSETTING( 0x2f, "47" ) PORT_DIPSETTING( 0x30, "48" ) PORT_DIPSETTING( 0x31, "49" ) - PORT_DIPSETTING( 0x32, "50" ) PORT_DIPSETTING( 0x33, "51" ) PORT_DIPSETTING( 0x34, "52" ) PORT_DIPSETTING( 0x35, "53" ) PORT_DIPSETTING( 0x36, "54" ) - PORT_DIPSETTING( 0x37, "15" ) PORT_DIPSETTING( 0x38, "56" ) PORT_DIPSETTING( 0x39, "57" ) PORT_DIPSETTING( 0x3a, "58" ) PORT_DIPSETTING( 0x3b, "59" ) - PORT_DIPSETTING( 0x3c, "60" ) PORT_DIPSETTING( 0x3d, "61" ) PORT_DIPSETTING( 0x3e, "62" ) PORT_DIPSETTING( 0x3f, "63" ) PORT_DIPSETTING( 0x40, "64" ) - PORT_DIPSETTING( 0x41, "65" ) PORT_DIPSETTING( 0x42, "66" ) PORT_DIPSETTING( 0x43, "67" ) PORT_DIPSETTING( 0x44, "68" ) PORT_DIPSETTING( 0x45, "69" ) - PORT_DIPSETTING( 0x46, "70" ) PORT_DIPSETTING( 0x47, "71" ) PORT_DIPSETTING( 0x48, "72" ) PORT_DIPSETTING( 0x49, "73" ) PORT_DIPSETTING( 0x4a, "74" ) - PORT_DIPSETTING( 0x4b, "75" ) PORT_DIPSETTING( 0x4c, "76" ) PORT_DIPSETTING( 0x4d, "77" ) PORT_DIPSETTING( 0x4e, "78" ) PORT_DIPSETTING( 0x4f, "79" ) - PORT_DIPSETTING( 0x50, "80" ) PORT_DIPSETTING( 0x51, "81" ) PORT_DIPSETTING( 0x52, "82" ) PORT_DIPSETTING( 0x53, "83" ) PORT_DIPSETTING( 0x54, "84" ) - PORT_DIPSETTING( 0x55, "85" ) PORT_DIPSETTING( 0x56, "86" ) PORT_DIPSETTING( 0x57, "87" ) PORT_DIPSETTING( 0x58, "88" ) PORT_DIPSETTING( 0x59, "89" ) - PORT_DIPSETTING( 0x5a, "90" ) PORT_DIPSETTING( 0x5b, "91" ) PORT_DIPSETTING( 0x5c, "92" ) PORT_DIPSETTING( 0x5d, "93" ) PORT_DIPSETTING( 0x5e, "94" ) - PORT_DIPSETTING( 0x5f, "95" ) PORT_DIPSETTING( 0x60, "96" ) PORT_DIPSETTING( 0x61, "97" ) PORT_DIPSETTING( 0x62, "98" ) PORT_DIPSETTING( 0x63, "99" ) - PORT_DIPSETTING( 0x64, "100" ) PORT_DIPSETTING( 0x65, "101" ) PORT_DIPSETTING( 0x66, "102" ) PORT_DIPSETTING( 0x67, "103" ) PORT_DIPSETTING( 0x68, "104" ) - PORT_DIPSETTING( 0x69, "105" ) PORT_DIPSETTING( 0x6a, "106" ) PORT_DIPSETTING( 0x6b, "107" ) PORT_DIPSETTING( 0x6c, "108" ) PORT_DIPSETTING( 0x6d, "109" ) - PORT_DIPSETTING( 0x6e, "110" ) PORT_DIPSETTING( 0x6f, "111" ) PORT_DIPSETTING( 0x70, "112" ) PORT_DIPSETTING( 0x71, "113" ) PORT_DIPSETTING( 0x72, "114" ) - PORT_DIPSETTING( 0x73, "115" ) PORT_DIPSETTING( 0x74, "116" ) PORT_DIPSETTING( 0x75, "117" ) PORT_DIPSETTING( 0x76, "118" ) PORT_DIPSETTING( 0x77, "119" ) - PORT_DIPSETTING( 0x78, "120" ) PORT_DIPSETTING( 0x79, "121" ) PORT_DIPSETTING( 0x7a, "122" ) PORT_DIPSETTING( 0x7b, "123" ) PORT_DIPSETTING( 0x7c, "124" ) - PORT_DIPSETTING( 0x7d, "125" ) PORT_DIPSETTING( 0x7e, "126" ) PORT_DIPSETTING( 0x7f, "127" ) PORT_DIPSETTING( 0x80, "128" ) PORT_DIPSETTING( 0x81, "129" ) - PORT_DIPSETTING( 0x82, "130" ) PORT_DIPSETTING( 0x83, "131" ) PORT_DIPSETTING( 0x84, "132" ) PORT_DIPSETTING( 0x85, "133" ) PORT_DIPSETTING( 0x86, "134" ) - PORT_DIPSETTING( 0x87, "135" ) PORT_DIPSETTING( 0x88, "136" ) PORT_DIPSETTING( 0x89, "137" ) PORT_DIPSETTING( 0x8a, "138" ) PORT_DIPSETTING( 0x8b, "139" ) - PORT_DIPSETTING( 0x8c, "140" ) PORT_DIPSETTING( 0x8d, "141" ) PORT_DIPSETTING( 0x8e, "142" ) PORT_DIPSETTING( 0x8f, "143" ) PORT_DIPSETTING( 0x90, "144" ) - PORT_DIPSETTING( 0x91, "145" ) PORT_DIPSETTING( 0x92, "146" ) PORT_DIPSETTING( 0x93, "147" ) PORT_DIPSETTING( 0x94, "148" ) PORT_DIPSETTING( 0x95, "149" ) - PORT_DIPSETTING( 0x96, "150" ) PORT_DIPSETTING( 0x97, "151" ) PORT_DIPSETTING( 0x98, "152" ) PORT_DIPSETTING( 0x99, "153" ) PORT_DIPSETTING( 0x9a, "154" ) - PORT_DIPSETTING( 0x9b, "155" ) PORT_DIPSETTING( 0x9c, "156" ) PORT_DIPSETTING( 0x9d, "157" ) PORT_DIPSETTING( 0x9e, "158" ) PORT_DIPSETTING( 0x9f, "159" ) - PORT_DIPSETTING( 0xa0, "160" ) PORT_DIPSETTING( 0xa1, "161" ) PORT_DIPSETTING( 0xa2, "162" ) PORT_DIPSETTING( 0xa3, "163" ) PORT_DIPSETTING( 0xa4, "164" ) - PORT_DIPSETTING( 0xa5, "165" ) PORT_DIPSETTING( 0xa6, "166" ) PORT_DIPSETTING( 0xa7, "167" ) PORT_DIPSETTING( 0xa8, "168" ) PORT_DIPSETTING( 0xa9, "169" ) - PORT_DIPSETTING( 0xaa, "170" ) PORT_DIPSETTING( 0xab, "171" ) PORT_DIPSETTING( 0xac, "172" ) PORT_DIPSETTING( 0xad, "173" ) PORT_DIPSETTING( 0xae, "174" ) - PORT_DIPSETTING( 0xaf, "175" ) PORT_DIPSETTING( 0xb0, "176" ) PORT_DIPSETTING( 0xb1, "177" ) PORT_DIPSETTING( 0xb2, "178" ) PORT_DIPSETTING( 0xb3, "179" ) - PORT_DIPSETTING( 0xb4, "180" ) PORT_DIPSETTING( 0xb5, "181" ) PORT_DIPSETTING( 0xb6, "182" ) PORT_DIPSETTING( 0xb7, "183" ) PORT_DIPSETTING( 0xb8, "184" ) - PORT_DIPSETTING( 0xb9, "185" ) PORT_DIPSETTING( 0xba, "186" ) PORT_DIPSETTING( 0xbb, "187" ) PORT_DIPSETTING( 0xbc, "188" ) PORT_DIPSETTING( 0xbd, "189" ) - PORT_DIPSETTING( 0xbe, "190" ) PORT_DIPSETTING( 0xbf, "191" ) PORT_DIPSETTING( 0xc0, "192" ) PORT_DIPSETTING( 0xc1, "193" ) PORT_DIPSETTING( 0xc2, "194" ) - PORT_DIPSETTING( 0xc3, "195" ) PORT_DIPSETTING( 0xc4, "196" ) PORT_DIPSETTING( 0xc5, "197" ) PORT_DIPSETTING( 0xc6, "198" ) PORT_DIPSETTING( 0xc7, "199" ) - PORT_DIPSETTING( 0xc8, "200" ) PORT_DIPSETTING( 0xc9, "201" ) PORT_DIPSETTING( 0xca, "202" ) PORT_DIPSETTING( 0xcb, "203" ) PORT_DIPSETTING( 0xcc, "204" ) - PORT_DIPSETTING( 0xcd, "205" ) PORT_DIPSETTING( 0xce, "206" ) PORT_DIPSETTING( 0xcf, "207" ) PORT_DIPSETTING( 0xd0, "208" ) PORT_DIPSETTING( 0xd1, "209" ) - PORT_DIPSETTING( 0xd2, "210" ) PORT_DIPSETTING( 0xd3, "211" ) PORT_DIPSETTING( 0xd4, "212" ) PORT_DIPSETTING( 0xd5, "213" ) PORT_DIPSETTING( 0xd6, "214" ) - PORT_DIPSETTING( 0xd7, "215" ) PORT_DIPSETTING( 0xd8, "216" ) PORT_DIPSETTING( 0xd9, "217" ) PORT_DIPSETTING( 0xda, "218" ) PORT_DIPSETTING( 0xdb, "219" ) - PORT_DIPSETTING( 0xdc, "220" ) PORT_DIPSETTING( 0xdd, "221" ) PORT_DIPSETTING( 0xde, "222" ) PORT_DIPSETTING( 0xdf, "223" ) PORT_DIPSETTING( 0xe0, "224" ) - PORT_DIPSETTING( 0xe1, "225" ) PORT_DIPSETTING( 0xe2, "226" ) PORT_DIPSETTING( 0xe3, "227" ) PORT_DIPSETTING( 0xe4, "228" ) PORT_DIPSETTING( 0xe5, "229" ) - PORT_DIPSETTING( 0xe6, "230" ) PORT_DIPSETTING( 0xe7, "231" ) PORT_DIPSETTING( 0xe8, "232" ) PORT_DIPSETTING( 0xe9, "233" ) PORT_DIPSETTING( 0xea, "234" ) - PORT_DIPSETTING( 0xeb, "235" ) PORT_DIPSETTING( 0xec, "236" ) PORT_DIPSETTING( 0xed, "237" ) PORT_DIPSETTING( 0xee, "238" ) PORT_DIPSETTING( 0xef, "239" ) - PORT_DIPSETTING( 0xf0, "240" ) PORT_DIPSETTING( 0xf1, "241" ) PORT_DIPSETTING( 0xf2, "242" ) PORT_DIPSETTING( 0xf3, "243" ) PORT_DIPSETTING( 0xf4, "244" ) - PORT_DIPSETTING( 0xf5, "245" ) PORT_DIPSETTING( 0xf6, "246" ) PORT_DIPSETTING( 0xf7, "247" ) PORT_DIPSETTING( 0xf8, "248" ) PORT_DIPSETTING( 0xf9, "249" ) - PORT_DIPSETTING( 0xfa, "250" ) PORT_DIPSETTING( 0xfb, "251" ) PORT_DIPSETTING( 0xfc, "252" ) PORT_DIPSETTING( 0xfd, "253" ) PORT_DIPSETTING( 0xfe, "254" ) + PORT_DIPSETTING( 0x00, "0" ) PORT_DIPSETTING( 0x01, "1" ) PORT_DIPSETTING( 0x02, "2" ) PORT_DIPSETTING( 0x03, "3" ) PORT_DIPSETTING( 0x04, "4" ) + PORT_DIPSETTING( 0x05, "5" ) PORT_DIPSETTING( 0x06, "6" ) PORT_DIPSETTING( 0x07, "7" ) PORT_DIPSETTING( 0x08, "8" ) PORT_DIPSETTING( 0x09, "9" ) + PORT_DIPSETTING( 0x0a, "10" ) PORT_DIPSETTING( 0x0b, "11" ) PORT_DIPSETTING( 0x0c, "12" ) PORT_DIPSETTING( 0x0d, "13" ) PORT_DIPSETTING( 0x0e, "14" ) + PORT_DIPSETTING( 0x0f, "15" ) PORT_DIPSETTING( 0x10, "16" ) PORT_DIPSETTING( 0x11, "17" ) PORT_DIPSETTING( 0x12, "18" ) PORT_DIPSETTING( 0x13, "19" ) + PORT_DIPSETTING( 0x14, "20" ) PORT_DIPSETTING( 0x15, "21" ) PORT_DIPSETTING( 0x16, "22" ) PORT_DIPSETTING( 0x17, "23" ) PORT_DIPSETTING( 0x18, "24" ) + PORT_DIPSETTING( 0x19, "25" ) PORT_DIPSETTING( 0x1a, "26" ) PORT_DIPSETTING( 0x1b, "27" ) PORT_DIPSETTING( 0x1c, "28" ) PORT_DIPSETTING( 0x1d, "29" ) + PORT_DIPSETTING( 0x1e, "30" ) PORT_DIPSETTING( 0x1f, "31" ) PORT_DIPSETTING( 0x20, "32" ) PORT_DIPSETTING( 0x21, "33" ) PORT_DIPSETTING( 0x22, "34" ) + PORT_DIPSETTING( 0x23, "35" ) PORT_DIPSETTING( 0x24, "36" ) PORT_DIPSETTING( 0x25, "37" ) PORT_DIPSETTING( 0x26, "38" ) PORT_DIPSETTING( 0x27, "39" ) + PORT_DIPSETTING( 0x28, "40" ) PORT_DIPSETTING( 0x29, "41" ) PORT_DIPSETTING( 0x2a, "42" ) PORT_DIPSETTING( 0x2b, "43" ) PORT_DIPSETTING( 0x2c, "44" ) + PORT_DIPSETTING( 0x2d, "45" ) PORT_DIPSETTING( 0x2e, "46" ) PORT_DIPSETTING( 0x2f, "47" ) PORT_DIPSETTING( 0x30, "48" ) PORT_DIPSETTING( 0x31, "49" ) + PORT_DIPSETTING( 0x32, "50" ) PORT_DIPSETTING( 0x33, "51" ) PORT_DIPSETTING( 0x34, "52" ) PORT_DIPSETTING( 0x35, "53" ) PORT_DIPSETTING( 0x36, "54" ) + PORT_DIPSETTING( 0x37, "15" ) PORT_DIPSETTING( 0x38, "56" ) PORT_DIPSETTING( 0x39, "57" ) PORT_DIPSETTING( 0x3a, "58" ) PORT_DIPSETTING( 0x3b, "59" ) + PORT_DIPSETTING( 0x3c, "60" ) PORT_DIPSETTING( 0x3d, "61" ) PORT_DIPSETTING( 0x3e, "62" ) PORT_DIPSETTING( 0x3f, "63" ) PORT_DIPSETTING( 0x40, "64" ) + PORT_DIPSETTING( 0x41, "65" ) PORT_DIPSETTING( 0x42, "66" ) PORT_DIPSETTING( 0x43, "67" ) PORT_DIPSETTING( 0x44, "68" ) PORT_DIPSETTING( 0x45, "69" ) + PORT_DIPSETTING( 0x46, "70" ) PORT_DIPSETTING( 0x47, "71" ) PORT_DIPSETTING( 0x48, "72" ) PORT_DIPSETTING( 0x49, "73" ) PORT_DIPSETTING( 0x4a, "74" ) + PORT_DIPSETTING( 0x4b, "75" ) PORT_DIPSETTING( 0x4c, "76" ) PORT_DIPSETTING( 0x4d, "77" ) PORT_DIPSETTING( 0x4e, "78" ) PORT_DIPSETTING( 0x4f, "79" ) + PORT_DIPSETTING( 0x50, "80" ) PORT_DIPSETTING( 0x51, "81" ) PORT_DIPSETTING( 0x52, "82" ) PORT_DIPSETTING( 0x53, "83" ) PORT_DIPSETTING( 0x54, "84" ) + PORT_DIPSETTING( 0x55, "85" ) PORT_DIPSETTING( 0x56, "86" ) PORT_DIPSETTING( 0x57, "87" ) PORT_DIPSETTING( 0x58, "88" ) PORT_DIPSETTING( 0x59, "89" ) + PORT_DIPSETTING( 0x5a, "90" ) PORT_DIPSETTING( 0x5b, "91" ) PORT_DIPSETTING( 0x5c, "92" ) PORT_DIPSETTING( 0x5d, "93" ) PORT_DIPSETTING( 0x5e, "94" ) + PORT_DIPSETTING( 0x5f, "95" ) PORT_DIPSETTING( 0x60, "96" ) PORT_DIPSETTING( 0x61, "97" ) PORT_DIPSETTING( 0x62, "98" ) PORT_DIPSETTING( 0x63, "99" ) + PORT_DIPSETTING( 0x64, "100" ) PORT_DIPSETTING( 0x65, "101" ) PORT_DIPSETTING( 0x66, "102" ) PORT_DIPSETTING( 0x67, "103" ) PORT_DIPSETTING( 0x68, "104" ) + PORT_DIPSETTING( 0x69, "105" ) PORT_DIPSETTING( 0x6a, "106" ) PORT_DIPSETTING( 0x6b, "107" ) PORT_DIPSETTING( 0x6c, "108" ) PORT_DIPSETTING( 0x6d, "109" ) + PORT_DIPSETTING( 0x6e, "110" ) PORT_DIPSETTING( 0x6f, "111" ) PORT_DIPSETTING( 0x70, "112" ) PORT_DIPSETTING( 0x71, "113" ) PORT_DIPSETTING( 0x72, "114" ) + PORT_DIPSETTING( 0x73, "115" ) PORT_DIPSETTING( 0x74, "116" ) PORT_DIPSETTING( 0x75, "117" ) PORT_DIPSETTING( 0x76, "118" ) PORT_DIPSETTING( 0x77, "119" ) + PORT_DIPSETTING( 0x78, "120" ) PORT_DIPSETTING( 0x79, "121" ) PORT_DIPSETTING( 0x7a, "122" ) PORT_DIPSETTING( 0x7b, "123" ) PORT_DIPSETTING( 0x7c, "124" ) + PORT_DIPSETTING( 0x7d, "125" ) PORT_DIPSETTING( 0x7e, "126" ) PORT_DIPSETTING( 0x7f, "127" ) PORT_DIPSETTING( 0x80, "128" ) PORT_DIPSETTING( 0x81, "129" ) + PORT_DIPSETTING( 0x82, "130" ) PORT_DIPSETTING( 0x83, "131" ) PORT_DIPSETTING( 0x84, "132" ) PORT_DIPSETTING( 0x85, "133" ) PORT_DIPSETTING( 0x86, "134" ) + PORT_DIPSETTING( 0x87, "135" ) PORT_DIPSETTING( 0x88, "136" ) PORT_DIPSETTING( 0x89, "137" ) PORT_DIPSETTING( 0x8a, "138" ) PORT_DIPSETTING( 0x8b, "139" ) + PORT_DIPSETTING( 0x8c, "140" ) PORT_DIPSETTING( 0x8d, "141" ) PORT_DIPSETTING( 0x8e, "142" ) PORT_DIPSETTING( 0x8f, "143" ) PORT_DIPSETTING( 0x90, "144" ) + PORT_DIPSETTING( 0x91, "145" ) PORT_DIPSETTING( 0x92, "146" ) PORT_DIPSETTING( 0x93, "147" ) PORT_DIPSETTING( 0x94, "148" ) PORT_DIPSETTING( 0x95, "149" ) + PORT_DIPSETTING( 0x96, "150" ) PORT_DIPSETTING( 0x97, "151" ) PORT_DIPSETTING( 0x98, "152" ) PORT_DIPSETTING( 0x99, "153" ) PORT_DIPSETTING( 0x9a, "154" ) + PORT_DIPSETTING( 0x9b, "155" ) PORT_DIPSETTING( 0x9c, "156" ) PORT_DIPSETTING( 0x9d, "157" ) PORT_DIPSETTING( 0x9e, "158" ) PORT_DIPSETTING( 0x9f, "159" ) + PORT_DIPSETTING( 0xa0, "160" ) PORT_DIPSETTING( 0xa1, "161" ) PORT_DIPSETTING( 0xa2, "162" ) PORT_DIPSETTING( 0xa3, "163" ) PORT_DIPSETTING( 0xa4, "164" ) + PORT_DIPSETTING( 0xa5, "165" ) PORT_DIPSETTING( 0xa6, "166" ) PORT_DIPSETTING( 0xa7, "167" ) PORT_DIPSETTING( 0xa8, "168" ) PORT_DIPSETTING( 0xa9, "169" ) + PORT_DIPSETTING( 0xaa, "170" ) PORT_DIPSETTING( 0xab, "171" ) PORT_DIPSETTING( 0xac, "172" ) PORT_DIPSETTING( 0xad, "173" ) PORT_DIPSETTING( 0xae, "174" ) + PORT_DIPSETTING( 0xaf, "175" ) PORT_DIPSETTING( 0xb0, "176" ) PORT_DIPSETTING( 0xb1, "177" ) PORT_DIPSETTING( 0xb2, "178" ) PORT_DIPSETTING( 0xb3, "179" ) + PORT_DIPSETTING( 0xb4, "180" ) PORT_DIPSETTING( 0xb5, "181" ) PORT_DIPSETTING( 0xb6, "182" ) PORT_DIPSETTING( 0xb7, "183" ) PORT_DIPSETTING( 0xb8, "184" ) + PORT_DIPSETTING( 0xb9, "185" ) PORT_DIPSETTING( 0xba, "186" ) PORT_DIPSETTING( 0xbb, "187" ) PORT_DIPSETTING( 0xbc, "188" ) PORT_DIPSETTING( 0xbd, "189" ) + PORT_DIPSETTING( 0xbe, "190" ) PORT_DIPSETTING( 0xbf, "191" ) PORT_DIPSETTING( 0xc0, "192" ) PORT_DIPSETTING( 0xc1, "193" ) PORT_DIPSETTING( 0xc2, "194" ) + PORT_DIPSETTING( 0xc3, "195" ) PORT_DIPSETTING( 0xc4, "196" ) PORT_DIPSETTING( 0xc5, "197" ) PORT_DIPSETTING( 0xc6, "198" ) PORT_DIPSETTING( 0xc7, "199" ) + PORT_DIPSETTING( 0xc8, "200" ) PORT_DIPSETTING( 0xc9, "201" ) PORT_DIPSETTING( 0xca, "202" ) PORT_DIPSETTING( 0xcb, "203" ) PORT_DIPSETTING( 0xcc, "204" ) + PORT_DIPSETTING( 0xcd, "205" ) PORT_DIPSETTING( 0xce, "206" ) PORT_DIPSETTING( 0xcf, "207" ) PORT_DIPSETTING( 0xd0, "208" ) PORT_DIPSETTING( 0xd1, "209" ) + PORT_DIPSETTING( 0xd2, "210" ) PORT_DIPSETTING( 0xd3, "211" ) PORT_DIPSETTING( 0xd4, "212" ) PORT_DIPSETTING( 0xd5, "213" ) PORT_DIPSETTING( 0xd6, "214" ) + PORT_DIPSETTING( 0xd7, "215" ) PORT_DIPSETTING( 0xd8, "216" ) PORT_DIPSETTING( 0xd9, "217" ) PORT_DIPSETTING( 0xda, "218" ) PORT_DIPSETTING( 0xdb, "219" ) + PORT_DIPSETTING( 0xdc, "220" ) PORT_DIPSETTING( 0xdd, "221" ) PORT_DIPSETTING( 0xde, "222" ) PORT_DIPSETTING( 0xdf, "223" ) PORT_DIPSETTING( 0xe0, "224" ) + PORT_DIPSETTING( 0xe1, "225" ) PORT_DIPSETTING( 0xe2, "226" ) PORT_DIPSETTING( 0xe3, "227" ) PORT_DIPSETTING( 0xe4, "228" ) PORT_DIPSETTING( 0xe5, "229" ) + PORT_DIPSETTING( 0xe6, "230" ) PORT_DIPSETTING( 0xe7, "231" ) PORT_DIPSETTING( 0xe8, "232" ) PORT_DIPSETTING( 0xe9, "233" ) PORT_DIPSETTING( 0xea, "234" ) + PORT_DIPSETTING( 0xeb, "235" ) PORT_DIPSETTING( 0xec, "236" ) PORT_DIPSETTING( 0xed, "237" ) PORT_DIPSETTING( 0xee, "238" ) PORT_DIPSETTING( 0xef, "239" ) + PORT_DIPSETTING( 0xf0, "240" ) PORT_DIPSETTING( 0xf1, "241" ) PORT_DIPSETTING( 0xf2, "242" ) PORT_DIPSETTING( 0xf3, "243" ) PORT_DIPSETTING( 0xf4, "244" ) + PORT_DIPSETTING( 0xf5, "245" ) PORT_DIPSETTING( 0xf6, "246" ) PORT_DIPSETTING( 0xf7, "247" ) PORT_DIPSETTING( 0xf8, "248" ) PORT_DIPSETTING( 0xf9, "249" ) + PORT_DIPSETTING( 0xfa, "250" ) PORT_DIPSETTING( 0xfb, "251" ) PORT_DIPSETTING( 0xfc, "252" ) PORT_DIPSETTING( 0xfd, "253" ) PORT_DIPSETTING( 0xfe, "254" ) PORT_DIPSETTING( 0xff, "255" ) INPUT_PORTS_END @@ -965,7 +965,7 @@ static MACHINE_CONFIG_DERIVED( reutapm, bbcbp ) /* sound hardware */ MCFG_DEVICE_REMOVE("mono") - MCFG_DEVICE_REMOVE("sn76489") + MCFG_DEVICE_REMOVE("sn76489") MCFG_DEVICE_REMOVE("vsm") MCFG_DEVICE_REMOVE("tms5220") diff --git a/src/mess/drivers/besta.c b/src/mess/drivers/besta.c index bc9da1510f3..32b19329c20 100644 --- a/src/mess/drivers/besta.c +++ b/src/mess/drivers/besta.c @@ -101,18 +101,18 @@ WRITE8_MEMBER( besta_state::kbd_put ) static ADDRESS_MAP_START(besta_mem, AS_PROGRAM, 32, besta_state) AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_SHARE("p_ram") // local bus DRAM, 4MB -// AM_RANGE(0x08010000, 0x08011fff) AM_RAM // unknown -- accessed by cp31dssp -// AM_RANGE(0xfca03500, 0xfca0350f) AM_READWRITE8(iscsi_reg_r, iscsi_reg_w, 0xffffffff) +// AM_RANGE(0x08010000, 0x08011fff) AM_RAM // unknown -- accessed by cp31dssp +// AM_RANGE(0xfca03500, 0xfca0350f) AM_READWRITE8(iscsi_reg_r, iscsi_reg_w, 0xffffffff) AM_RANGE(0xff000000, 0xff00ffff) AM_ROM AM_REGION("user1", 0) // actual mapping is up to 0xff03ffff AM_RANGE(0xff040000, 0xff07ffff) AM_RAM // onboard SRAM -// AM_RANGE(0xff800000, 0xff80001f) AM_DEVREADWRITE8("mpcc", mpcc68561_t, reg_r, reg_w, 0xffffffff) +// AM_RANGE(0xff800000, 0xff80001f) AM_DEVREADWRITE8("mpcc", mpcc68561_t, reg_r, reg_w, 0xffffffff) AM_RANGE(0xff800000, 0xff80001f) AM_READWRITE8(mpcc_reg_r, mpcc_reg_w, 0xffffffff) // console AM_RANGE(0xff800200, 0xff800237) AM_DEVREADWRITE8 ("pit2", pit68230_device, read, write, 0xffffffff) -// AM_RANGE(0xff800400, 0xff800xxx) // ??? -- shows up in cp31dssp log -// AM_RANGE(0xff800800, 0xff800xxx) // 68153 BIM -// AM_RANGE(0xff800a00, 0xff800xxx) // 62421 RTC +// AM_RANGE(0xff800400, 0xff800xxx) // ??? -- shows up in cp31dssp log +// AM_RANGE(0xff800800, 0xff800xxx) // 68153 BIM +// AM_RANGE(0xff800a00, 0xff800xxx) // 62421 RTC AM_RANGE(0xff800c00, 0xff800c37) AM_DEVREADWRITE8 ("pit1", pit68230_device, read, write, 0xffffffff) -// AM_RANGE(0xff800e00, 0xff800xxx) // PIT3? +// AM_RANGE(0xff800e00, 0xff800xxx) // PIT3? ADDRESS_MAP_END /* Input ports */ @@ -137,9 +137,9 @@ static MACHINE_CONFIG_START( besta, besta_state ) MCFG_CPU_ADD("maincpu", M68030, 2*16670000) MCFG_CPU_PROGRAM_MAP(besta_mem) - MCFG_DEVICE_ADD ("pit1", PIT68230, 16670000 / 2) // XXX verify clock + MCFG_DEVICE_ADD ("pit1", PIT68230, 16670000 / 2) // XXX verify clock - MCFG_DEVICE_ADD ("pit2", PIT68230, 16670000 / 2) // XXX verify clock + MCFG_DEVICE_ADD ("pit2", PIT68230, 16670000 / 2) // XXX verify clock MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0) MCFG_GENERIC_TERMINAL_KEYBOARD_CB(WRITE8(besta_state, kbd_put)) diff --git a/src/mess/drivers/canon_s80.c b/src/mess/drivers/canon_s80.c index 857e2bfa053..2ee2325ce0e 100644 --- a/src/mess/drivers/canon_s80.c +++ b/src/mess/drivers/canon_s80.c @@ -32,8 +32,8 @@ public: static ADDRESS_MAP_START(canons80_map, AS_PROGRAM, 8, canons80_state ) - AM_RANGE(0x0000, 0x7fff) AM_RAM - AM_RANGE(0x8000, 0xffff) AM_ROM + AM_RANGE(0x0000, 0x7fff) AM_RAM + AM_RANGE(0x8000, 0xffff) AM_ROM ADDRESS_MAP_END static MACHINE_CONFIG_START( canons80, canons80_state ) diff --git a/src/mess/drivers/decwritr.c b/src/mess/drivers/decwritr.c index 12bcf33d1df..35d54c74e8e 100644 --- a/src/mess/drivers/decwritr.c +++ b/src/mess/drivers/decwritr.c @@ -202,7 +202,7 @@ static INPUT_PORTS_START( la120 ) PORT_BIT(0x60, IP_ACTIVE_HIGH, IPT_UNUSED) PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1) PORT_START("COL4") - PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Num -") PORT_CODE(KEYCODE_MINUS_PAD) + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Num -") PORT_CODE(KEYCODE_MINUS_PAD) PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Num ,") PORT_CODE(KEYCODE_PLUS_PAD) PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("' \"") PORT_CODE(KEYCODE_QUOTE) PORT_CHAR('\'') PORT_CHAR('"') PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("[ {") PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') PORT_CHAR('{') diff --git a/src/mess/drivers/dvk_kcgd.c b/src/mess/drivers/dvk_kcgd.c index e063c12d2e7..2903a402680 100644 --- a/src/mess/drivers/dvk_kcgd.c +++ b/src/mess/drivers/dvk_kcgd.c @@ -4,7 +4,7 @@ Display Controller), a replacement for KSM (dvk_ksm.c) in later models of DVK desktops. - MPI (Q-Bus clone) board. Interfaces with MS7004 (DEC LK201 workalike) + MPI (Q-Bus clone) board. Interfaces with MS7004 (DEC LK201 workalike) keyboard, mouse, and monochrome or color CRT. To do: @@ -20,23 +20,23 @@ #include "machine/clock.h" #include "machine/ms7004.h" -#define KCGD_TOTAL_HORZ 1000 // XXX verify +#define KCGD_TOTAL_HORZ 1000 // XXX verify #define KCGD_DISP_HORZ 800 -#define KCGD_HORZ_START 200 // XXX verify +#define KCGD_HORZ_START 200 // XXX verify -#define KCGD_TOTAL_VERT 600 // XXX verify +#define KCGD_TOTAL_VERT 600 // XXX verify #define KCGD_DISP_VERT 480 -#define KCGD_VERT_START 100 // XXX verify +#define KCGD_VERT_START 100 // XXX verify -#define KCGD_STATUS_PAGE 0 -#define KCGD_STATUS_INTERLACE 1 -#define KCGD_STATUS_TIMER_INT 5 -#define KCGD_STATUS_MODE_INT 6 -#define KCGD_STATUS_MODE_LAST 7 -#define KCGD_STATUS_TIMER_VAL 15 +#define KCGD_STATUS_PAGE 0 +#define KCGD_STATUS_INTERLACE 1 +#define KCGD_STATUS_TIMER_INT 5 +#define KCGD_STATUS_MODE_INT 6 +#define KCGD_STATUS_MODE_LAST 7 +#define KCGD_STATUS_TIMER_VAL 15 -#define KCGD_PAGE_0 015574 -#define KCGD_PAGE_1 005574 +#define KCGD_PAGE_0 015574 +#define KCGD_PAGE_1 005574 #define VERBOSE_DBG 1 /* general debug messages */ @@ -57,7 +57,7 @@ public: kcgd_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), -// m_ms7004(*this, "ms7004"), +// m_ms7004(*this, "ms7004"), m_palette(*this, "palette"), m_screen(*this, "screen") { } @@ -102,8 +102,8 @@ private: bitmap_ind16 m_tmpbmp; struct { - UINT16 status; // 167770 - UINT8 control; // 167772 + UINT16 status; // 167770 + UINT8 control; // 167772 int palette_index, vram_addr; UINT8 palette[16]; } m_video; @@ -111,7 +111,7 @@ private: protected: required_device<cpu_device> m_maincpu; -// required_device<ms7004_device> m_ms7004; +// required_device<ms7004_device> m_ms7004; required_device<palette_device> m_palette; required_device<screen_device> m_screen; }; @@ -123,10 +123,10 @@ static ADDRESS_MAP_START( kcgd_mem, AS_PROGRAM, 16, kcgd_state ) AM_RANGE (0160000, 0160001) AM_MIRROR(03774) AM_READWRITE(vram_addr_r, vram_addr_w) AM_RANGE (0160002, 0160003) AM_MIRROR(03774) AM_READWRITE(vram_data_r, vram_data_w) AM_RANGE (0167770, 0167771) AM_READWRITE(status_r, status_w) - AM_RANGE (0167772, 0167773) AM_READWRITE8(palette_index_r, palette_index_w, 0x00ff) // reads always return 0 + AM_RANGE (0167772, 0167773) AM_READWRITE8(palette_index_r, palette_index_w, 0x00ff) // reads always return 0 AM_RANGE (0167772, 0167773) AM_READWRITE8(palette_data_r, palette_data_w, 0xff00) -// AM_RANGE (0176560, 0176567) AM_RAM // USART2 -- host -// AM_RANGE (0177560, 0177567) AM_RAM // USART3 -- keyboard +// AM_RANGE (0176560, 0176567) AM_RAM // USART2 -- host +// AM_RANGE (0177560, 0177567) AM_RAM // USART3 -- keyboard ADDRESS_MAP_END void kcgd_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) @@ -134,13 +134,13 @@ void kcgd_state::device_timer(emu_timer &timer, device_timer_id id, int param, v switch (id) { /* - case TIMER_ID_VSYNC_ON: - m_maincpu->set_input_line(INPUT_LINE_EVNT, ASSERT_LINE); - break; + case TIMER_ID_VSYNC_ON: + m_maincpu->set_input_line(INPUT_LINE_EVNT, ASSERT_LINE); + break; - case TIMER_ID_VSYNC_OFF: - m_maincpu->set_input_line(INPUT_LINE_EVNT, CLEAR_LINE); - break; + case TIMER_ID_VSYNC_OFF: + m_maincpu->set_input_line(INPUT_LINE_EVNT, CLEAR_LINE); + break; */ case TIMER_ID_500HZ: m_video.status ^= (1 << KCGD_STATUS_TIMER_VAL); @@ -155,7 +155,7 @@ void kcgd_state::machine_reset() void kcgd_state::video_start() { -// screen_device *screen = machine().device<screen_device>("screen"); +// screen_device *screen = machine().device<screen_device>("screen"); // 64 kwords, word size is 17 bits m_videoram = auto_alloc_array(machine(), UINT32, 65536); @@ -163,11 +163,11 @@ void kcgd_state::video_start() m_tmpclip = rectangle(0, KCGD_DISP_HORZ-1, 0, KCGD_DISP_VERT-1); m_tmpbmp.allocate(KCGD_DISP_HORZ, KCGD_DISP_VERT); /* - m_vsync_on_timer = timer_alloc(TIMER_ID_VSYNC_ON); - m_vsync_on_timer->adjust(screen->time_until_pos(0, 0), 0, screen->frame_period()); + m_vsync_on_timer = timer_alloc(TIMER_ID_VSYNC_ON); + m_vsync_on_timer->adjust(screen->time_until_pos(0, 0), 0, screen->frame_period()); - m_vsync_off_timer = timer_alloc(TIMER_ID_VSYNC_OFF); - m_vsync_off_timer->adjust(screen->time_until_pos(16, 0), 0, screen->frame_period()); + m_vsync_off_timer = timer_alloc(TIMER_ID_VSYNC_OFF); + m_vsync_off_timer->adjust(screen->time_until_pos(16, 0), 0, screen->frame_period()); */ m_500hz_timer = timer_alloc(TIMER_ID_500HZ); m_500hz_timer->adjust(attotime::from_hz(500), 0, attotime::from_hz(500)); @@ -182,8 +182,8 @@ PALETTE_INIT_MEMBER(kcgd_state, kcgd) } /* - VRAM is 128K and is word-addressable, so address fits into 16 bits. - Low 32K of VRAM are not used to store pixel data -- XXX. + VRAM is 128K and is word-addressable, so address fits into 16 bits. + Low 32K of VRAM are not used to store pixel data -- XXX. */ WRITE16_MEMBER(kcgd_state::vram_addr_w) { @@ -247,7 +247,7 @@ WRITE8_MEMBER(kcgd_state::palette_data_w) { DBG_LOG(1,"Palette data W", ("data %02XH index %d\n", data, m_video.palette_index)); m_video.palette[m_video.palette_index] = data; - m_palette->set_pen_color(m_video.palette_index, + m_palette->set_pen_color(m_video.palette_index, 85*(data & 3), 85*((data >> 2) & 3), 85*((data >> 4) & 3)); } diff --git a/src/mess/drivers/force68k.c b/src/mess/drivers/force68k.c index 20b4509c216..d1cf7a46833 100644 --- a/src/mess/drivers/force68k.c +++ b/src/mess/drivers/force68k.c @@ -1,5 +1,5 @@ -// license:BSD-3-Clause -// copyright-holders:Joakim Larsson Edstr??m +// license:BSD-3-Clause +// copyright-holders:Joakim Larsson Edstrom /*************************************************************************** * * Force SYS68K CPU-1/CPU-6 VME SBC drivers, initially based on the 68ksbc.c @@ -125,19 +125,19 @@ class force68k_state : public driver_device { public: force68k_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device (mconfig, type, tag), - m_maincpu (*this, "maincpu"), - m_rtc (*this, "rtc"), - m_pit (*this, "pit"), - m_aciahost (*this, "aciahost"), - m_aciaterm (*this, "aciaterm"), - m_aciaremt (*this, "aciaremt"), - m_centronics (*this, "centronics") - , m_centronics_ack (0) - , m_centronics_busy (0) - , m_centronics_perror (0) - , m_centronics_select (0) - ,m_cart(*this, "exp_rom1") + driver_device (mconfig, type, tag), + m_maincpu (*this, "maincpu"), + m_rtc (*this, "rtc"), + m_pit (*this, "pit"), + m_aciahost (*this, "aciahost"), + m_aciaterm (*this, "aciaterm"), + m_aciaremt (*this, "aciaremt"), + m_centronics (*this, "centronics") + , m_centronics_ack (0) + , m_centronics_busy (0) + , m_centronics_perror (0) + , m_centronics_select (0) + ,m_cart(*this, "exp_rom1") { } @@ -253,8 +253,8 @@ INPUT_PORTS_END WRITE_LINE_MEMBER (force68k_state::centronics_ack_w) { // LOG (logerror ("centronics_ack_w(%d) %lld\n", state, m_maincpu->total_cycles ())); - m_centronics_ack = state; - m_pit->h1_set (state); + m_centronics_ack = state; + m_pit->h1_set (state); } /* Centronics BUSY handler @@ -262,7 +262,7 @@ WRITE_LINE_MEMBER (force68k_state::centronics_ack_w) */ WRITE_LINE_MEMBER (force68k_state::centronics_busy_w){ // LOG (logerror ("centronics_busy_w(%d) %lld\n", state, m_maincpu->total_cycles ())); - m_centronics_busy = state; + m_centronics_busy = state; } /* Centronics PERROR handler @@ -270,7 +270,7 @@ WRITE_LINE_MEMBER (force68k_state::centronics_busy_w){ */ WRITE_LINE_MEMBER (force68k_state::centronics_perror_w){ // LOG (logerror ("centronics_perror_w(%d) %lld\n", state, m_maincpu->total_cycles ())); - m_centronics_perror = state; + m_centronics_perror = state; } /* Centronics SELECT handler @@ -278,44 +278,44 @@ WRITE_LINE_MEMBER (force68k_state::centronics_perror_w){ */ WRITE_LINE_MEMBER (force68k_state::centronics_select_w){ // LOG (logerror ("centronics_select_w(%d) %lld\n", state, m_maincpu->total_cycles ())); - m_centronics_select = state; - m_pit->portb_setbit (0, state); + m_centronics_select = state; + m_pit->portb_setbit (0, state); } /* Start it up */ void force68k_state::machine_start () { - LOG (logerror ("machine_start\n")); + LOG (logerror ("machine_start\n")); - save_item (NAME (m_centronics_busy)); - save_item (NAME (m_centronics_ack)); - save_item (NAME (m_centronics_select)); - save_item (NAME (m_centronics_perror)); + save_item (NAME (m_centronics_busy)); + save_item (NAME (m_centronics_ack)); + save_item (NAME (m_centronics_select)); + save_item (NAME (m_centronics_perror)); - /* Setup pointer to bootvector in ROM for bootvector handler bootvect_r */ - m_sysrom = (UINT16*)(memregion ("maincpu")->base () + 0x080000); + /* Setup pointer to bootvector in ROM for bootvector handler bootvect_r */ + m_sysrom = (UINT16*)(memregion ("maincpu")->base () + 0x080000); - /* Map user ROM/RAM socket(s) */ - if (m_cart->exists()) - { - m_usrrom = (UINT16*)m_cart->get_rom_base(); + /* Map user ROM/RAM socket(s) */ + if (m_cart->exists()) + { + m_usrrom = (UINT16*)m_cart->get_rom_base(); #if 0 // This should be the correct way but produces odd and even bytes swapped - m_maincpu->space(AS_PROGRAM).install_read_handler(0xa0000, 0xbffff, read16_delegate(FUNC(generic_slot_device::read16_rom), (generic_slot_device*)m_cart)); + m_maincpu->space(AS_PROGRAM).install_read_handler(0xa0000, 0xbffff, read16_delegate(FUNC(generic_slot_device::read16_rom), (generic_slot_device*)m_cart)); #else // So we installs a custom very ineffecient handler for now until we understand hwp to solve the problem better - m_maincpu->space(AS_PROGRAM).install_read_handler(0xa0000, 0xbffff, read16_delegate(FUNC(force68k_state::read16_rom), this)); + m_maincpu->space(AS_PROGRAM).install_read_handler(0xa0000, 0xbffff, read16_delegate(FUNC(force68k_state::read16_rom), this)); #endif - } + } } /* A very ineffecient User cart emulation of two 8 bit sockets (odd and even) */ READ16_MEMBER (force68k_state::read16_rom){ - offset = offset % m_cart->common_get_size("rom"); // Don't read outside buffer... - return ((m_usrrom [offset] << 8) & 0xff00) | ((m_usrrom [offset] >> 8) & 0x00ff); + offset = offset % m_cart->common_get_size("rom"); // Don't read outside buffer... + return ((m_usrrom [offset] << 8) & 0xff00) | ((m_usrrom [offset] >> 8) & 0x00ff); } /* Boot vector handler, the PCB hardwires the first 8 bytes from 0x80000 to 0x0 */ READ16_MEMBER (force68k_state::bootvect_r){ - return m_sysrom [offset]; + return m_sysrom [offset]; } /* 10. The VMEbus (text from board documentation) @@ -326,7 +326,7 @@ READ16_MEMBER (force68k_state::bootvect_r){ * systems. In addition to the bus arbiter, a separate slave bus * arbitration allows selection of the arbitration level (0-3). * - * The address modifier range .,Short 110 Access« can be selected + * The address modifier range .,Short 110 Access can be selected * via a jumper for variable system generation. The 7 interrupt * request levels of the VMEbus are fully supported from the * SYS68K1CPU-1 B/D. For multi-processing, each IRQ signal can be @@ -338,44 +338,44 @@ READ16_MEMBER (force68k_state::bootvect_r){ /* Dummy VME access methods until the VME bus device is ready for use */ READ16_MEMBER (force68k_state::vme_a24_r){ - LOG (logerror ("vme_a24_r\n")); - return (UINT16) 0; + LOG (logerror ("vme_a24_r\n")); + return (UINT16) 0; } WRITE16_MEMBER (force68k_state::vme_a24_w){ - LOG (logerror ("vme_a24_w\n")); + LOG (logerror ("vme_a24_w\n")); } READ16_MEMBER (force68k_state::vme_a16_r){ - LOG (logerror ("vme_16_r\n")); - return (UINT16) 0; + LOG (logerror ("vme_16_r\n")); + return (UINT16) 0; } WRITE16_MEMBER (force68k_state::vme_a16_w){ - LOG (logerror ("vme_a16_w\n")); + LOG (logerror ("vme_a16_w\n")); } /* * Serial port clock sources can all be driven by different outputs of the 14411 */ WRITE_LINE_MEMBER (force68k_state::write_aciahost_clock){ - m_aciahost->write_txc (state); - m_aciahost->write_rxc (state); + m_aciahost->write_txc (state); + m_aciahost->write_rxc (state); } WRITE_LINE_MEMBER (force68k_state::write_aciaterm_clock){ - m_aciaterm->write_txc (state); - m_aciaterm->write_rxc (state); + m_aciaterm->write_txc (state); + m_aciaterm->write_rxc (state); } WRITE_LINE_MEMBER (force68k_state::write_aciaremt_clock){ - m_aciaremt->write_txc (state); - m_aciaremt->write_rxc (state); + m_aciaremt->write_txc (state); + m_aciaremt->write_rxc (state); } /* * 4. The USER Area (Text from the board manual) - The USER area contains two 28 pin sockets with JEDEC compatible pin out. + The USER area contains two 28 pin sockets with JEDEC compatible pin out. To allow the usage of static RAM's, the access to the USER area is byte oriented. Table 3. lists the usable device types. @@ -388,14 +388,14 @@ WRITE_LINE_MEMBER (force68k_state::write_aciaremt_clock){ 32Kx16 64 Kbyte 27256 -------------------------- */ -// Implementation of static 2 x 64K EPROM in sockets J10/J11 as 16 bit wide cartridge for easier +// Implementation of static 2 x 64K EPROM in sockets J10/J11 as 16 bit wide cartridge for easier // software handling. TODO: make configurable according to table above. static MACHINE_CONFIG_FRAGMENT( fccpu1_eprom_sockets ) - MCFG_GENERIC_CARTSLOT_ADD("exp_rom1", generic_plain_slot, "fccpu1_cart") - MCFG_GENERIC_EXTENSIONS("bin,rom") - MCFG_GENERIC_WIDTH(GENERIC_ROM16_WIDTH) - MCFG_GENERIC_ENDIAN(ENDIANNESS_BIG) - MCFG_GENERIC_LOAD(force68k_state, exp1_load) + MCFG_GENERIC_CARTSLOT_ADD("exp_rom1", generic_plain_slot, "fccpu1_cart") + MCFG_GENERIC_EXTENSIONS("bin,rom") + MCFG_GENERIC_WIDTH(GENERIC_ROM16_WIDTH) + MCFG_GENERIC_ENDIAN(ENDIANNESS_BIG) + MCFG_GENERIC_LOAD(force68k_state, exp1_load) // MCFG_SOFTWARE_LIST_ADD("cart_list", "fccpu1_cart") MACHINE_CONFIG_END @@ -404,19 +404,19 @@ MACHINE_CONFIG_END ****************************/ int force68k_state::force68k_load_cart(device_image_interface &image, generic_slot_device *slot) { - UINT32 size = slot->common_get_size("rom"); - - if (size > 0x20000) // Max 128Kb - { - LOG( printf("Cartridge size exceeding max size (128Kb): %d\n", size) ); - image.seterror(IMAGE_ERROR_UNSPECIFIED, "Cartridge size exceeding max size (128Kb)"); - return IMAGE_INIT_FAIL; - } - - slot->rom_alloc(size, GENERIC_ROM16_WIDTH, ENDIANNESS_BIG); - slot->common_load_rom(slot->get_rom_base(), size, "rom"); - - return IMAGE_INIT_PASS; + UINT32 size = slot->common_get_size("rom"); + + if (size > 0x20000) // Max 128Kb + { + LOG( printf("Cartridge size exceeding max size (128Kb): %d\n", size) ); + image.seterror(IMAGE_ERROR_UNSPECIFIED, "Cartridge size exceeding max size (128Kb)"); + return IMAGE_INIT_FAIL; + } + + slot->rom_alloc(size, GENERIC_ROM16_WIDTH, ENDIANNESS_BIG); + slot->common_load_rom(slot->get_rom_base(), size, "rom"); + + return IMAGE_INIT_PASS; } /* @@ -427,7 +427,7 @@ static MACHINE_CONFIG_START (fccpu1, force68k_state) MCFG_CPU_ADD ("maincpu", M68000, XTAL_16MHz / 2) MCFG_CPU_PROGRAM_MAP (force68k_mem) -/* P3/Host Port config +/* P3/Host Port config * LO command causes ROM monitor to expect S-records on HOST port by default * Implementation through nullmodem currently does not support handshakes so * the ROM momitor is over-run while checking for checksums etc if used with @@ -535,7 +535,7 @@ ROM_LOAD16_BYTE ("fccpu1V1.0L.j9.bin", 0x080000, 0x2000, CRC (035315fb) SHA1 (90 * DC <expression> <CR> Data Conversion * DF <CR> Display Formatted registers * DU [n] <address1> <address2>[<string>] <CR> Dump memory to object file - * GO or G [<address] <CR> Execute program. + * GO or G [<address] <CR> Execute program. * GD [<address] <CR> Go Direct * GT <address> <CR> Exec prog: temporary breakpoint * HE<CR> Help; display monitor commands diff --git a/src/mess/drivers/hk68v10.c b/src/mess/drivers/hk68v10.c index 20fa8dc670c..57ab539c7bd 100644 --- a/src/mess/drivers/hk68v10.c +++ b/src/mess/drivers/hk68v10.c @@ -8,18 +8,18 @@ * * I baught this board from http://www.retrotechnology.com without documentation. * It has a Motorola 68010 CPU @ 10MHz and two 2764 EPROMS with HBUG firmware - * The board is very populated and suitable to run a real server OS supported by - * FPU,MMU and DMA controller chips. The firmware supports SCSI, Centronics/FPI - * and a serial port. I have not found so much on the FPI interface yet and it is + * The board is very populated and suitable to run a real server OS supported by + * FPU,MMU and DMA controller chips. The firmware supports SCSI, Centronics/FPI + * and a serial port. I have not found so much on the FPI interface yet and it is * possibly Heurikon specific. There is also a Heurikon Multibus board called * HK68/M10 for which I might add support from specs, however would need a ROM * to verify. - * - * || - * || || - * ||||--|| - * ||||--|| - * || ||____________________________________________________________ ___ + * + * || + * || || + * ||||--|| + * ||||--|| + * || ||____________________________________________________________ ___ * || | | | 12 PALs 68/V-... | | | | | |_| | * || | | 2 x | |74 |74 |74 |74 | | | | * || | | 74273 | VS4-01 VM4-00 | 244 573 645 645 | | | @@ -37,14 +37,14 @@ * || |paral| | FPU || | | | | | | | * || |Z8536| |_________||_________________|_ _| | | |_| | * ||| | | | | | | ------------ |___| - * /==||| | | | | | | | 3 PALs | | - * FSM || | | | MC68010 | MC68451 | MC68450 | | MP1-00 | | - * 1234 || | | | CPU | MMU | DMA | | MX2-00 | | - * LEDs || |-----| |_________|__________|_________|__| MX1-01 |---| - * || | | ____ ____ ---| |__________|74 | - * \==||| | | | | | | |74| 4 x | 3 PALs |145| - * ||| |SCC | | | | | |804 74245 | CS3-00 |___| - * FPI || |seria| |U12 | |U23 | | | | CS2-00 | | + * /==||| | | | | | | | 3 PALs | | + * FSM || | | | MC68010 | MC68451 | MC68450 | | MP1-00 | | + * 1234 || | | | CPU | MMU | DMA | | MX2-00 | | + * LEDs || |-----| |_________|__________|_________|__| MX1-01 |---| + * || | | ____ ____ ---| |__________|74 | + * \==||| | | | | | | |74| 4 x | 3 PALs |145| + * ||| |SCC | | | | | |804 74245 | CS3-00 |___| + * FPI || |seria| |U12 | |U23 | | | | CS2-00 | | * paralell |Z8530A |HBUG| |HBUG| | | | CS1-00 | |___ * port || | | | | | | ---_---------------|__________| _| | * || | | | | | | |MTTLDL|MDLDM| 2 x |___________ | | | @@ -64,15 +64,15 @@ * || | each || RFS-01 |590|257 | | | | * ||| | || RCT-01 | | | | |_| | * /==||| +--------+|__________________________|___|__|__________| |___| - * || ||------------------------------------------------------------+-+ - * ||||--|| - * ||||--|| + * || ||------------------------------------------------------------+-+ + * ||||--|| + * ||||--|| * || * * History of Heurikon *--------------------- - * The company was founded 1972 as cellar company. Heurikon was aquired - * 1989 by Computer Products, 1990 by Artesyn and finally in 2005 by Emerson + * The company was founded 1972 as cellar company. Heurikon was aquired + * 1989 by Computer Products, 1990 by Artesyn and finally in 2005 by Emerson * Electric who consilidated it fully by 2009 and closed the office. * * Misc links about Heurikon and this board: @@ -116,13 +116,13 @@ * (open) * 0x*00000 (maxmeml) * RAM (bus) (optional) - * 0x200000 (top of 2 meg RAM) + * 0x200000 (top of 2 meg RAM) * RAM (bus) (optional) * 0x100000 (top of 1 meg RAM) * User RAM * 0x001000 UNIX Kernel * Exception Vectors - * 0x000000 (bottom of memory) + * 0x000000 (bottom of memory) * -------------------------------------------------------------------------- * * Interrupt sources M10/V10 @@ -130,8 +130,8 @@ * Description Device Lvl IRQ VME board * /Board Vector Address * ---------------------------------------------------------- - * On board Sources M10/V10 - * + * On board Sources M10/V10 + * * Off board Sources (other VME boards) * EXOS Ethernet 5 4 * TapeMaster Reel-to-Reel Tape 3 @@ -198,9 +198,9 @@ class hk68v10_state : public driver_device { public: hk68v10_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device (mconfig, type, tag), - m_maincpu (*this, "maincpu") - ,m_sccterm(*this, "scc") + driver_device (mconfig, type, tag), + m_maincpu (*this, "maincpu") + ,m_sccterm(*this, "scc") // ,m_cart(*this, "exp_rom1") { } @@ -222,8 +222,8 @@ required_device<cpu_device> m_maincpu; required_device<scc8530_device> m_sccterm; // Pointer to System ROMs needed by bootvect_r and masking RAM buffer for post reset accesses - UINT16 *m_sysrom; - UINT16 m_sysram[4]; + UINT16 *m_sysrom; + UINT16 m_sysram[4]; }; static ADDRESS_MAP_START (hk68v10_mem, AS_PROGRAM, 16, hk68v10_state) @@ -233,7 +233,7 @@ AM_RANGE (0x000000, 0x000007) AM_RAM AM_WRITE (bootvect_w) /* After first AM_RANGE (0x000008, 0x1fffff) AM_RAM /* 2 Mb RAM */ AM_RANGE (0xFC0000, 0xFC3fff) AM_ROM /* System EPROM Area 16Kb HBUG */ AM_RANGE (0xFC4000, 0xFDffff) AM_ROM /* System EPROM Area an additional 112Kb for System ROM */ -AM_RANGE (0xFE9000, 0xFE9009) AM_RAM //AM_DEVREADWRITE8("scc", scc8530_device, ba_cd_r, ba_cd_w, 0xffff) /* Z80-PIO? */ +AM_RANGE (0xFE9000, 0xFE9009) AM_RAM //AM_DEVREADWRITE8("scc", scc8530_device, ba_cd_r, ba_cd_w, 0xffff) /* Z80-PIO? */ AM_RANGE (0xFEA000, 0xFEA001) AM_DEVREADWRITE8("scc", scc8530_device, ca_r, ca_w, 0xff00) /* Dual serial port Z80-SCC */ AM_RANGE (0xFEA002, 0xFEA003) AM_DEVREADWRITE8("scc", scc8530_device, cb_r, cb_w, 0xff00) /* Dual serial port Z80-SCC */ AM_RANGE (0xFEA004, 0xFEA005) AM_DEVREADWRITE8("scc", scc8530_device, da_r, da_w, 0xff00) /* Dual serial port Z80-SCC */ @@ -249,13 +249,13 @@ INPUT_PORTS_END /* Start it up */ void hk68v10_state::machine_start () { - LOG (("%" I64FMT "d %s\n", m_maincpu->total_cycles(), FUNCNAME)); + LOG (("%" I64FMT "d %s\n", m_maincpu->total_cycles(), FUNCNAME)); - /* Setup pointer to bootvector in ROM for bootvector handler bootvect_r */ + /* Setup pointer to bootvector in ROM for bootvector handler bootvect_r */ m_sysrom = (UINT16*)(memregion ("maincpu")->base () + 0x0fc0000); } -/* Support CPU resets +/* Support CPU resets TODO: Investigate why the user need two 'softreset' commands for the below to work. Eg F3 + F11 + F3 + F11 If only one 'softreset' is given the reset PC gets the RAM content, not the intended ROM vector. @@ -263,50 +263,50 @@ void hk68v10_state::machine_start () */ void hk68v10_state::machine_reset () { - LOG (("%" I64FMT "d %s\n", m_maincpu->total_cycles(), FUNCNAME)); + LOG (("%" I64FMT "d %s\n", m_maincpu->total_cycles(), FUNCNAME)); - /* Reset pointer to bootvector in ROM for bootvector handler bootvect_r */ - if (m_sysrom == &m_sysram[0]) /* Condition needed because memory map is not setup first time */ - m_sysrom = (UINT16*)(memregion ("maincpu")->base () + 0x0fc0000); + /* Reset pointer to bootvector in ROM for bootvector handler bootvect_r */ + if (m_sysrom == &m_sysram[0]) /* Condition needed because memory map is not setup first time */ + m_sysrom = (UINT16*)(memregion ("maincpu")->base () + 0x0fc0000); } /* Boot vector handler, the PCB hardwires the first 8 bytes from 0xfc0000 to 0x0 at reset*/ -/* - Right after HBUG reset the bootvector is masked by RAM: +/* + Right after HBUG reset the bootvector is masked by RAM: FC001C: move.w #$700, $fe4000.l FC0024: move.l #$0, $0.l # <- zeroing the reset vector FC002E: move.l #$0, $4.l # There is for sure some hardware mapping going in here */ READ16_MEMBER (hk68v10_state::bootvect_r){ - //LOG (("bootvect_r %s\n", m_sysrom != &m_sysram[0] ? "as reset" : "as swapped")); - return m_sysrom[offset]; + //LOG (("bootvect_r %s\n", m_sysrom != &m_sysram[0] ? "as reset" : "as swapped")); + return m_sysrom[offset]; } WRITE16_MEMBER (hk68v10_state::bootvect_w){ - LOG (("bootvect_w offset %08x, mask %08x, data %04x\n", offset, mem_mask, data)); - m_sysram[offset % sizeof(m_sysram)] &= ~mem_mask; - m_sysram[offset % sizeof(m_sysram)] |= (data & mem_mask); - m_sysrom = &m_sysram[0]; // redirect all upcomming accesses to masking RAM until reset. + LOG (("bootvect_w offset %08x, mask %08x, data %04x\n", offset, mem_mask, data)); + m_sysram[offset % sizeof(m_sysram)] &= ~mem_mask; + m_sysram[offset % sizeof(m_sysram)] |= (data & mem_mask); + m_sysrom = &m_sysram[0]; // redirect all upcomming accesses to masking RAM until reset. } #if 0 /* Dummy VME access methods until the VME bus device is ready for use */ READ16_MEMBER (hk68v10_state::vme_a24_r){ - LOG (("vme_a24_r\n")); - return (UINT16) 0; + LOG (("vme_a24_r\n")); + return (UINT16) 0; } WRITE16_MEMBER (hk68v10_state::vme_a24_w){ - LOG (("vme_a24_w\n")); + LOG (("vme_a24_w\n")); } READ16_MEMBER (hk68v10_state::vme_a16_r){ - LOG (("vme_16_r\n")); - return (UINT16) 0; + LOG (("vme_16_r\n")); + return (UINT16) 0; } WRITE16_MEMBER (hk68v10_state::vme_a16_w){ - LOG (("vme_a16_w\n")); + LOG (("vme_a16_w\n")); } #endif @@ -334,8 +334,8 @@ WRITE16_MEMBER (hk68v10_state::vme_a16_w){ * */ WRITE_LINE_MEMBER (hk68v10_state::write_sccterm_clock){ - m_sccterm->txca_w (state); - m_sccterm->rxca_w (state); + m_sccterm->txca_w (state); + m_sccterm->rxca_w (state); } /* diff --git a/src/mess/drivers/hp64k.c b/src/mess/drivers/hp64k.c index 61dd5942d01..e56ce89f62b 100644 --- a/src/mess/drivers/hp64k.c +++ b/src/mess/drivers/hp64k.c @@ -406,7 +406,7 @@ void hp64k_state::machine_reset() m_floppy0_wpt = false; m_floppy1_wpt = false; m_beeper->set_state(0); - m_baud_rate->str_w((m_s5_sw->read() >> 1) & 0xf); + m_baud_rate->str_w((m_s5_sw->read() >> 1) & 0xf); m_16x_clk = (m_rs232_sw->read() & 0x02) != 0; m_loopback = false; m_txd_state = true; @@ -1389,7 +1389,7 @@ static MACHINE_CONFIG_START(hp64k , hp64k_state) MCFG_TIMER_DRIVER_ADD("beep_timer" , hp64k_state , hp64k_beeper_off); MCFG_DEVICE_ADD("baud_rate" , COM8116 , XTAL_5_0688MHz) - MCFG_COM8116_FR_HANDLER(WRITELINE(hp64k_state , hp64k_baud_clk_w)); + MCFG_COM8116_FR_HANDLER(WRITELINE(hp64k_state , hp64k_baud_clk_w)); MCFG_DEVICE_ADD("uart" , I8251 , 0) MCFG_I8251_RXRDY_HANDLER(WRITELINE(hp64k_state , hp64k_rxrdy_w)); diff --git a/src/mess/drivers/lg-dvd.c b/src/mess/drivers/lg-dvd.c index b8953e8b7b2..0ea3c2ad14a 100644 --- a/src/mess/drivers/lg-dvd.c +++ b/src/mess/drivers/lg-dvd.c @@ -12,7 +12,7 @@ class lg_dvd_state : public driver_device { public: lg_dvd_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), - maincpu(*this, "maincpu") + maincpu(*this, "maincpu") { } required_device<i80c52_device> maincpu; diff --git a/src/mess/drivers/mps1230.c b/src/mess/drivers/mps1230.c index ccb648c8261..9537036fd2a 100644 --- a/src/mess/drivers/mps1230.c +++ b/src/mess/drivers/mps1230.c @@ -5,9 +5,9 @@ mps1230.c - Commodore MPS-1230 dot-matrix printer Skeleton made September, 2015 by R. Belmont - -------------------------------------- - + +------------------------------------- + Commodore MPS-1230 Dot Matrix Printer Commodore 1988/89 @@ -74,7 +74,7 @@ Notes: (all IC's shown) J899 - 15-pin connector for ribbon cable for console buttons and leds (feed, online etc) J369 - 36-pin centronics parallel connector J02G - 6-pin Commodore serial bus connector - + ************************************************************************/ #include "emu.h" @@ -121,7 +121,7 @@ void mps1230_state::machine_reset() static ADDRESS_MAP_START( mps1230_map, AS_PROGRAM, 8, mps1230_state ) AM_RANGE(0x0000, 0x7fff) AM_ROM AM_REGION("mps1230", 0) - AM_RANGE(0xc000, 0xdfff) AM_RAM // as per the service manual + AM_RANGE(0xc000, 0xdfff) AM_RAM // as per the service manual AM_RANGE(0xff00, 0xffff) AM_RAM // tested at PC=77, then used for the 7810's stack ADDRESS_MAP_END diff --git a/src/mess/drivers/mvme350.c b/src/mess/drivers/mvme350.c index c93e1900c1c..62bf38926d3 100644 --- a/src/mess/drivers/mvme350.c +++ b/src/mess/drivers/mvme350.c @@ -2,22 +2,22 @@ // copyright-holders:Joakim Larsson Edstrom /*************************************************************************** * - * Motorola MVME-350 6U Intelligent Tape Controller driver, initially derived + * Motorola MVME-350 6U Intelligent Tape Controller driver, initially derived * from hk68v10.c * * 31/08/2015 * * I baught this board from http://www.retrotechnology.com without documentation. - * It has a Motorola 68010 CPU @ 10MHz, 128 Mb RAM and two 2764 EPROMS with + * It has a Motorola 68010 CPU @ 10MHz, 128 Mb RAM and two 2764 EPROMS with * QIC-02 tape controller firmware. The board also populates a 68230 PIT and loads * of descrete TTL components. * - * - * || - * || || - * ||||--|| - * ||||--|| - * || ||__________________________________________________________ ___ + * + * || + * || || + * ||||--|| + * ||||--|| + * || ||__________________________________________________________ ___ * ||_______________________________________________________ |_| | * || |74F74 | xxxxx | xxxxx | 74LS245 | 74ALS645| | | | * || |______|________|_________|___________| ________| | | | @@ -35,14 +35,14 @@ * ||| | |______| __|_______________________|---------| | | | * ||| | |74LS74| |25LS251 | | RAM |74S244 | |_| | * ||+---+ ---------- |---------- | HM6264P-12 |---------| |___| - * || | PAL | | 74245 | |______________|74S244 | | - * || +--------- |_________| | U40 27128 |---------| | - * || | 74F32 | | || System ROM |74LS682 | | - * Red || +-------- | CPU || |-+-------| | - * FAIL ||LED | 74F138| | MC68010 |+--------------+ |DIPSW__| | - * Red || +-------- | || RAM | |74S38 | | - * HALT ||LED | 74F32 | |__________|| HM6264P-12 | |______ | | - * Green || +-------+ |74245 |+--------------+ |74F08 | | + * || | PAL | | 74245 | |______________|74S244 | | + * || +--------- |_________| | U40 27128 |---------| | + * || | 74F32 | | || System ROM |74LS682 | | + * Red || +-------- | CPU || |-+-------| | + * FAIL ||LED | 74F138| | MC68010 |+--------------+ |DIPSW__| | + * Red || +-------- | || RAM | |74S38 | | + * HALT ||LED | 74F32 | |__________|| HM6264P-12 | |______ | | + * Green || +-------+ |74245 |+--------------+ |74F08 | | * RUN ||LED |XTAL | |__________|| U47 27128 | |______ | |___ * ||+---+|20MHz | |74244 || System ROM | |74F00 | _| | * |||CON|--------+___|__________|+--------------+_|_______| | | | @@ -62,24 +62,24 @@ * || +------------------------------------------+------| | | | * || |DM2353 |74F10 |74F32 | 74LS32| 74F08 |DM2353| |_| | * || +------------------------------------------+------+-+ |___| - * || ||------------------------------------------------------------+-+ - * ||||--|| - * ||||--|| + * || ||------------------------------------------------------------+-+ + * ||||--|| + * ||||--|| * || * * History of Motorola VME division (https://en.wikipedia.org/wiki/VMEbus) *--------------------------------- * When Motorola released the 68000 processor 1979 the ambition of the deisgners - * was also to standardize a versatile CPU bus to be able to build computer + * was also to standardize a versatile CPU bus to be able to build computer * systems without constructing PCB:s from scratch. This become VersaBus but the * boards was really too big and the computer world already saw the systems shrink * in size. Motorola's design center in Munich proposed to use the smaller and * already used Euroboard form factor and call it Versabus-E. This later became - * VME which was standardized in the VITA organization 1981 + * VME which was standardized in the VITA organization 1981 * - * Misc links about Motorola VME division and this board: + * Misc links about Motorola VME division and this board: * http://bitsavers.trailing-edge.com/pdf/motorola/_dataBooks/1987_Microcomputer_Systems_and_Components.pdf - * + * * Description * ------------ * Streaming Tape Controller released 1984 with the following feature set @@ -100,7 +100,7 @@ * - High Level Command/Status Packets offer efficient Operating System Support * - Permits Chaining of Host Command * - * Address Map + * Address Map * -------------------------------------------------------------------------- * Local to VME Decscription * -------------------------------------------------------------------------- @@ -117,8 +117,8 @@ * Description Device Lvl IRQ VME board * /Board Vector Address * ---------------------------------------------------------- - * On board Sources - * + * On board Sources + * * Off board Sources (other VME boards) * * ---------------------------------------------------------- @@ -149,9 +149,9 @@ class mvme350_state : public driver_device { public: mvme350_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device (mconfig, type, tag), - m_maincpu (*this, "maincpu"), - m_pit(*this, "pit") + driver_device (mconfig, type, tag), + m_maincpu (*this, "maincpu"), + m_pit(*this, "pit") { } @@ -164,19 +164,19 @@ virtual void machine_reset (); protected: private: - required_device<cpu_device> m_maincpu; + required_device<cpu_device> m_maincpu; required_device<pit68230_device> m_pit; }; static ADDRESS_MAP_START (mvme350_mem, AS_PROGRAM, 16, mvme350_state) ADDRESS_MAP_UNMAP_HIGH - AM_RANGE (0x000000, 0x01ffff) AM_ROM /* 128 Mb ROM */ - AM_RANGE (0x020000, 0x03ffff) AM_RAM /* 128 Mb RAM */ + AM_RANGE (0x000000, 0x01ffff) AM_ROM /* 128 Mb ROM */ + AM_RANGE (0x020000, 0x03ffff) AM_RAM /* 128 Mb RAM */ #if 1 - AM_RANGE(0x040000, 0x040035) AM_DEVREADWRITE8("pit", pit68230_device, read, write, 0x00ff) /* PIT ?*/ - AM_RANGE(0x060000, 0x06001f) AM_RAM /* Area is cleared on start */ - AM_RANGE(0x080000, 0x080035) AM_DEVREADWRITE8("pit", pit68230_device, read, write, 0x00ff) /* PIT ?*/ + AM_RANGE(0x040000, 0x040035) AM_DEVREADWRITE8("pit", pit68230_device, read, write, 0x00ff) /* PIT ?*/ + AM_RANGE(0x060000, 0x06001f) AM_RAM /* Area is cleared on start */ + AM_RANGE(0x080000, 0x080035) AM_DEVREADWRITE8("pit", pit68230_device, read, write, 0x00ff) /* PIT ?*/ #endif //AM_RANGE(0x100000, 0xfeffff) AM_READWRITE(vme_a24_r, vme_a24_w) /* VMEbus Rev B addresses (24 bits) - not verified */ //AM_RANGE(0xff0000, 0xffffff) AM_READWRITE(vme_a16_r, vme_a16_w) /* VMEbus Rev B addresses (16 bits) - not verified */ @@ -189,32 +189,32 @@ INPUT_PORTS_END /* Start it up */ void mvme350_state::machine_start () { - LOG (logerror ("machine_start\n")); + LOG (logerror ("machine_start\n")); } void mvme350_state::machine_reset () { - LOG (logerror ("machine_reset\n")); + LOG (logerror ("machine_reset\n")); } #if 0 /* Dummy VME access methods until the VME bus device is ready for use */ READ16_MEMBER (mvme350_state::vme_a24_r){ - LOG (logerror ("vme_a24_r\n")); - return (UINT16) 0; + LOG (logerror ("vme_a24_r\n")); + return (UINT16) 0; } WRITE16_MEMBER (mvme350_state::vme_a24_w){ - LOG (logerror ("vme_a24_w\n")); + LOG (logerror ("vme_a24_w\n")); } READ16_MEMBER (mvme350_state::vme_a16_r){ - LOG (logerror ("vme_16_r\n")); - return (UINT16) 0; + LOG (logerror ("vme_16_r\n")); + return (UINT16) 0; } WRITE16_MEMBER (mvme350_state::vme_a16_w){ - LOG (logerror ("vme_a16_w\n")); + LOG (logerror ("vme_a16_w\n")); } #endif @@ -222,10 +222,10 @@ WRITE16_MEMBER (mvme350_state::vme_a16_w){ * Machine configuration */ static MACHINE_CONFIG_START (mvme350, mvme350_state) - /* basic machine hardware */ - MCFG_CPU_ADD ("maincpu", M68010, XTAL_10MHz) - MCFG_CPU_PROGRAM_MAP (mvme350_mem) - /* PIT Parallel Interface and Timer device, assuming strapped for on board clock */ + /* basic machine hardware */ + MCFG_CPU_ADD ("maincpu", M68010, XTAL_10MHz) + MCFG_CPU_PROGRAM_MAP (mvme350_mem) + /* PIT Parallel Interface and Timer device, assuming strapped for on board clock */ MCFG_DEVICE_ADD("pit", PIT68230, XTAL_16MHz / 2) MACHINE_CONFIG_END @@ -243,11 +243,11 @@ ROM_LOAD16_BYTE ("mvme350U47v2.3.bin", 0x0001, 0x4000, CRC (582ce095) SHA1 (d092 * The ROMs known commands from different sources: * * It communicates with the master through data buffers in shared memory and VME bus interrupts - * as desribed in + * as desribed in * http://bitsavers.trailing-edge.com/pdf/motorola/_dataBooks/1987_Microcomputer_Systems_and_Components.pdf - * + * * The board is pretty boring as stand alone, it initializes everything and then executes a STOP instruction - * awaiting a CPU on the VME bus to request its services. However, it enables boot from tape devices, we just + * awaiting a CPU on the VME bus to request its services. However, it enables boot from tape devices, we just * need a MVME-131 and a dump of a VersaDOS or Motorola UNIX System V system tape and some work. */ ROM_END diff --git a/src/mess/drivers/mzr8105.c b/src/mess/drivers/mzr8105.c index a2aae7814c9..e1679e2a146 100644 --- a/src/mess/drivers/mzr8105.c +++ b/src/mess/drivers/mzr8105.c @@ -1,5 +1,5 @@ // license:BSD-3-Clause -// copyright-holders:Joakim Larsson Edstr??m +// copyright-holders:Joakim Larsson Edstrom /*************************************************************************** * * Mizar VME8105 rev D 3U SBC driver, initially derived from force68k.c @@ -10,13 +10,13 @@ * It has a Motorola 68000 CPU @ 10MHz and two 27128 EPROMS with OS9 DEBUG labels * and not much more except 16 or so TTLs, 2 PALs and a VME P1 connector. It is a * 2 sided design so it shold be possible to trace the schematics quite easily. - * There is a date on the P1 Connector: "Feb 20 1987" - * - * || - * || - * || - * || - * ||____________________________________________________________ ___ + * There is a date on the P1 Connector: "Feb 20 1987" + * + * || + * || + * || + * || + * ||____________________________________________________________ ___ * || --------------K2|U6-7432|U7-7474|U14-7405|U21-74645 | |_| | * || | 2764 - low |-+-------+-------+--------+-----------+ | | | * || | OS9 DEBUG U4| +---------+ +--------+---------+ | | | @@ -34,40 +34,40 @@ * || | | | |XTAL |U9-7410+---------+| || | | * ||K1 | U1| | |FOX100-------+---------+|K5||_| | * || -------------- |_________|10MHz|U8-7404|U15-74148|| || |___| - * ||--||--------------------------------+----+-------+---------++--+ - * ||--|| - * || + * ||--||--------------------------------+----+-------+---------++--+ + * ||--|| + * || * * PAL:s *------ - * The board has two PAL:s, a PAL20L10 and a PAL14L4. + * The board has two PAL:s, a PAL20L10 and a PAL14L4. * * _____ _____ - * OD/CLK 1 |* \_/ | 20 VCC + * OD/CLK 1 |* \_/ | 20 VCC * CPU A13 I0 2 | | 19 O0/LR A23 * U9 7410p12 I1 3 | | 18 O1/A0 A22 * CPU *AS I2 4 | | 17 02/A1 U2/U4 2764p22 *OE * GND I3 5 | | 16 03/A2 U11 PAL20L10p6 I4 * CPU A14 I4 6 | U10 | 15 A0/O0 U11 PAL20L10p7 I5 * CPU A15 I5 7 | PAL14L4 | 14 A1/O1 U19 74LS244p11 I0b - * CPU A16 I6 8 | | 13 A2/O2 A18 + * CPU A16 I6 8 | | 13 A2/O2 A18 * CPU A17 I7 9 | | 12 LR/O3 A20 * GND 10 |_____________| 11 CLK/OD A21 - * + * * _____ _____ - * OD/CLK 1 |* \_/ | 24 VCC - * I0 2 | | 23 O0/LR - * CPU *AS I1 3 | | 22 O1/A0 - * U10 PAL14L4p3 I2 4 | | 21 02/A1 - * I3 5 | | 20 03/A2 - * U10 PAL14L4p16 I4 6 | U10 | 19 04/NC - * U10 PAL14L4p15 I5 7 | PAL20L10 | 18 NC/O0 - * I6 8 | | 17 A2/O1 - * I7 9 | | 16 A1/O2 - * I8 10 | | 15 A0/O3 - * I9 11 | | 14 LR/O4 - * GND 12 |_____________| 13 CLK/OD - * + * OD/CLK 1 |* \_/ | 24 VCC + * I0 2 | | 23 O0/LR + * CPU *AS I1 3 | | 22 O1/A0 + * U10 PAL14L4p3 I2 4 | | 21 02/A1 + * I3 5 | | 20 03/A2 + * U10 PAL14L4p16 I4 6 | U10 | 19 04/NC + * U10 PAL14L4p15 I5 7 | PAL20L10 | 18 NC/O0 + * I6 8 | | 17 A2/O1 + * I7 9 | | 16 A1/O2 + * I8 10 | | 15 A0/O3 + * I9 11 | | 14 LR/O4 + * GND 12 |_____________| 13 CLK/OD + * * Trace is not fully completed and validated. * * History of Mizar @@ -81,27 +81,27 @@ * * From http://archive.org/stream/68micro-vol-11-num-02/V11N02_Feb1989_djvu.txt : *-------------------------------------------------------------------------------- - * " Mizar provides complete OS-9 solutions for the VMEbus. Mizar's VME CPUs - * offer (he functions and performance your application demands. Our single - * height (3U) VME processors are uniquely configurable computing engines, - * Through Mizar's unique MXbus™ expansion interface, standard and custom side - * modules can be added to basic processors to create double-height (6U) boards - * tor specific applications, 3U CPU options include 68010, 66020, and 63030 - * microprocessors, up to one MB of DRAM, serial I/O, real-time clock, and - * mailbox interrupt support. Standard MXbus side modules include additional DRAM. - * SRAM, and I/O. + * " Mizar provides complete OS-9 solutions for the VMEbus. Mizar's VME CPUs + * offer (he functions and performance your application demands. Our single + * height (3U) VME processors are uniquely configurable computing engines, + * Through Mizar's unique MXbus expansion interface, standard and custom side + * modules can be added to basic processors to create double-height (6U) boards + * tor specific applications, 3U CPU options include 68010, 66020, and 63030 + * microprocessors, up to one MB of DRAM, serial I/O, real-time clock, and + * mailbox interrupt support. Standard MXbus side modules include additional DRAM. + * SRAM, and I/O. * - * Mizar's standard double- height (6U) processors provide additional features such - * as a high-speed cache to enhance 68030 performance, floating, point coprocessor - * support, up to four MB dual ported DRAM, VSB memory interface, Ethernet, and SCSI. + * Mizar's standard double- height (6U) processors provide additional features such + * as a high-speed cache to enhance 68030 performance, floating, point coprocessor + * support, up to four MB dual ported DRAM, VSB memory interface, Ethernet, and SCSI. * - * Mizar also supports OS-9 with completely configured OS9 development systems and - * OS-9 application server systems. For more information, call Mizar today + * Mizar also supports OS-9 with completely configured OS9 development systems and + * OS-9 application server systems. For more information, call Mizar today * - * 800-635-0200 MIZAR 1419 Dunn Drive • CarrolHon, TX 75006 • 214-446-2664" + * 800-635-0200 MIZAR 1419 Dunn Drive CarrolHon, TX 75006 214-446-2664" * * Known boards from Mizar: - * + * *-Comp.Os.Vxworks diguest mailing list May 1992: VxWorks Drivers Available from Mizar: * EMX 7320 Serial I/O Board * EMX 7550 Ethernet Controller Board (AMD 7990 Lance) MAC: 00:80:F8 MIZAR, INC. @@ -121,9 +121,9 @@ *-------------------------------------------------------------------- * Aug 20 1984 a report by James Jones from the OS/9 conferance in Des Moines: * "... - * Mizar: is selling VME bus 68010 boards, running OS-9/68000; they also make - * various memory and I/O boards, disk controller boards, and and a NEC 7220-based - * graphics controller board...." + * Mizar: is selling VME bus 68010 boards, running OS-9/68000; they also make + * various memory and I/O boards, disk controller boards, and and a NEC 7220-based + * graphics controller board...." * * Misc links about Mizar: * http://www.vita.com/History @@ -134,10 +134,10 @@ * -------------------------------------------------------------------------- * Address Range Description/Assumption * -------------------------------------------------------------------------- - * 0x000000 0x01ffff ROM because of fixed vectors - * 0x020000 0x03ffff RAM because bootvector stack starts at 0x21000 + * 0x000000 0x01ffff ROM because of fixed vectors + * 0x020000 0x03ffff RAM because bootvector stack starts at 0x21000 * -- VME adresses--- - * 0xff0000 0xff0003 Bootstrap expects to find a UPD7201 serial device here + * 0xff0000 0xff0003 Bootstrap expects to find a UPD7201 serial device here * -------------------------------------------------------------------------- * * Interrupt sources @@ -164,7 +164,7 @@ #include "bus/rs232/rs232.h" #include "machine/clock.h" -#define CARDSLOT 0 +#define CARDSLOT 0 #if CARDSLOT // Awaiting info on how to boot the user eproms #include "bus/generic/slot.h" @@ -173,7 +173,7 @@ #define LOG(x) x - + /* These values are borrowed just to get the terminal going and should be replaced * once a proper serial board hardware (ie MZ 8300) is found and emulated. */ #define BAUDGEN_CLOCK XTAL_19_6608MHz /* fake */ @@ -183,9 +183,9 @@ class mzr8105_state : public driver_device { public: mzr8105_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device (mconfig, type, tag), - m_maincpu (*this, "maincpu") - ,m_updterm(*this, "upd") + driver_device (mconfig, type, tag), + m_maincpu (*this, "maincpu") + ,m_updterm(*this, "upd") // ,m_cart(*this, "exp_rom1") { } @@ -231,10 +231,10 @@ AM_RANGE (0x020000, 0x03ffff) AM_RAM /* Not verified */ AM_RANGE(0x100000, 0xfeffff) AM_READWRITE(vme_a24_r, vme_a24_w) /* VMEbus Rev B addresses (24 bits) - not verified */ //AM_RANGE(0xff0000, 0xffffff) AM_READWRITE(vme_a16_r, vme_a16_w) /* VMEbus Rev B addresses (16 bits) - not verified */ // Faking a Mizar 8300 SIO BOARD in VME A16 adress space - AM_RANGE (0xFF0000, 0xFF0001) AM_DEVREADWRITE8("upd", upd7201_device, da_r, da_w, 0x00ff) /* Dual serial port NEC uPD7201 */ - AM_RANGE (0xFF0002, 0xFF0003) AM_DEVREADWRITE8("upd", upd7201_device, ca_r, ca_w, 0x00ff) /* Dual serial port NEC uPD7201 */ - AM_RANGE (0xFF0004, 0xFF0005) AM_DEVREADWRITE8("upd", upd7201_device, db_r, db_w, 0x00ff) /* Dual serial port NEC uPD7201 */ - AM_RANGE (0xFF0006, 0xFF0007) AM_DEVREADWRITE8("upd", upd7201_device, cb_r, cb_w, 0x00ff) /* Dual serial port NEC uPD7201 */ + AM_RANGE (0xFF0000, 0xFF0001) AM_DEVREADWRITE8("upd", upd7201_device, da_r, da_w, 0x00ff) /* Dual serial port NEC uPD7201 */ + AM_RANGE (0xFF0002, 0xFF0003) AM_DEVREADWRITE8("upd", upd7201_device, ca_r, ca_w, 0x00ff) /* Dual serial port NEC uPD7201 */ + AM_RANGE (0xFF0004, 0xFF0005) AM_DEVREADWRITE8("upd", upd7201_device, db_r, db_w, 0x00ff) /* Dual serial port NEC uPD7201 */ + AM_RANGE (0xFF0006, 0xFF0007) AM_DEVREADWRITE8("upd", upd7201_device, cb_r, cb_w, 0x00ff) /* Dual serial port NEC uPD7201 */ ADDRESS_MAP_END @@ -245,49 +245,49 @@ INPUT_PORTS_END /* Start it up */ void mzr8105_state::machine_start () { - LOG (logerror ("machine_start\n")); + LOG (logerror ("machine_start\n")); #if CARDSLOT - /* Map user ROM/RAM socket(s) */ - if (m_cart->exists()) - { - m_usrrom = (UINT16*)m_cart->get_rom_base(); - m_maincpu->space(AS_PROGRAM).install_read_handler(0xa0000, 0xbffff, read16_delegate(FUNC(generic_slot_device::read16_rom), (generic_slot_device*)m_cart)); - } + /* Map user ROM/RAM socket(s) */ + if (m_cart->exists()) + { + m_usrrom = (UINT16*)m_cart->get_rom_base(); + m_maincpu->space(AS_PROGRAM).install_read_handler(0xa0000, 0xbffff, read16_delegate(FUNC(generic_slot_device::read16_rom), (generic_slot_device*)m_cart)); + } #endif } /* Dummy VME access methods until the VME bus device is ready for use */ READ16_MEMBER (mzr8105_state::vme_a24_r){ - LOG (logerror ("vme_a24_r\n")); - return (UINT16) 0; + LOG (logerror ("vme_a24_r\n")); + return (UINT16) 0; } WRITE16_MEMBER (mzr8105_state::vme_a24_w){ - LOG (logerror ("vme_a24_w\n")); + LOG (logerror ("vme_a24_w\n")); } READ16_MEMBER (mzr8105_state::vme_a16_r){ - LOG (logerror ("vme_16_r\n")); - return (UINT16) 0; + LOG (logerror ("vme_16_r\n")); + return (UINT16) 0; } WRITE16_MEMBER (mzr8105_state::vme_a16_w){ - LOG (logerror ("vme_a16_w\n")); + LOG (logerror ("vme_a16_w\n")); } #if CARDSLOT /* - * 4. The USER EPROM Area + * 4. The USER EPROM Area */ -// Implementation of static 2 x 64K EPROM in sockets U1/U3 as 16 bit wide cartridge for easier +// Implementation of static 2 x 64K EPROM in sockets U1/U3 as 16 bit wide cartridge for easier // software handling. TODO: make configurable according to table above. static MACHINE_CONFIG_FRAGMENT( mzr8105_eprom_sockets ) - MCFG_GENERIC_CARTSLOT_ADD("exp_rom1", generic_plain_slot, "mzr8105_cart") - MCFG_GENERIC_EXTENSIONS("bin,rom") - MCFG_GENERIC_WIDTH(GENERIC_ROM16_WIDTH) - MCFG_GENERIC_ENDIAN(ENDIANNESS_BIG) - MCFG_GENERIC_LOAD(mzr8105_state, exp1_load) + MCFG_GENERIC_CARTSLOT_ADD("exp_rom1", generic_plain_slot, "mzr8105_cart") + MCFG_GENERIC_EXTENSIONS("bin,rom") + MCFG_GENERIC_WIDTH(GENERIC_ROM16_WIDTH) + MCFG_GENERIC_ENDIAN(ENDIANNESS_BIG) + MCFG_GENERIC_LOAD(mzr8105_state, exp1_load) // MCFG_SOFTWARE_LIST_ADD("cart_list", "mzr8105_cart") MACHINE_CONFIG_END @@ -296,25 +296,25 @@ MACHINE_CONFIG_END ****************************/ int mzr8105_state::mzr8105_load_cart(device_image_interface &image, generic_slot_device *slot) { - UINT32 size = slot->common_get_size("rom"); - - if (size > 0x20000) // Max 128Kb - not verified - { - LOG( printf("Cartridge size exceeding max size (128Kb): %d\n", size) ); - image.seterror(IMAGE_ERROR_UNSPECIFIED, "Cartridge size exceeding max size (128Kb)"); - return IMAGE_INIT_FAIL; - } - - slot->rom_alloc(size, GENERIC_ROM16_WIDTH, ENDIANNESS_BIG); - slot->common_load_rom(slot->get_rom_base(), size, "rom"); - - return IMAGE_INIT_PASS; + UINT32 size = slot->common_get_size("rom"); + + if (size > 0x20000) // Max 128Kb - not verified + { + LOG( printf("Cartridge size exceeding max size (128Kb): %d\n", size) ); + image.seterror(IMAGE_ERROR_UNSPECIFIED, "Cartridge size exceeding max size (128Kb)"); + return IMAGE_INIT_FAIL; + } + + slot->rom_alloc(size, GENERIC_ROM16_WIDTH, ENDIANNESS_BIG); + slot->common_load_rom(slot->get_rom_base(), size, "rom"); + + return IMAGE_INIT_PASS; } #endif WRITE_LINE_MEMBER (mzr8105_state::write_updterm_clock){ - m_updterm->txca_w (state); - m_updterm->rxca_w (state); + m_updterm->txca_w (state); + m_updterm->rxca_w (state); } /* diff --git a/src/mess/drivers/n64.c b/src/mess/drivers/n64.c index f3793bbee85..a5c2e3c7499 100644 --- a/src/mess/drivers/n64.c +++ b/src/mess/drivers/n64.c @@ -105,7 +105,7 @@ static INPUT_PORTS_START( n64 ) PORT_CONFSETTING(0x00, "None") PORT_CONFSETTING(0x40, "Joypad") PORT_CONFSETTING(0x80, "Mouse") - + PORT_CONFNAME(0x0100, 0x0000, "Disk Drive") PORT_CONFSETTING(0x0000, "Retail") PORT_CONFSETTING(0x0100, "Development") diff --git a/src/mess/drivers/pc9801.c b/src/mess/drivers/pc9801.c index 4ad66db3916..739cbe37a10 100644 --- a/src/mess/drivers/pc9801.c +++ b/src/mess/drivers/pc9801.c @@ -2215,7 +2215,7 @@ static ADDRESS_MAP_START( pc9801ux_io, AS_IO, 16, pc9801_state ) ADDRESS_MAP_END static ADDRESS_MAP_START( pc9801rs_map, AS_PROGRAM, 16, pc9801_state ) -// AM_RANGE(0x0d8000, 0x0d9fff) AM_ROM AM_REGION("ide",0) +// AM_RANGE(0x0d8000, 0x0d9fff) AM_ROM AM_REGION("ide",0) AM_RANGE(0x0da000, 0x0dbfff) AM_RAM // ide ram AM_RANGE(0xee0000, 0xefffff) AM_READ8(pc9801rs_ipl_r, 0xffff) AM_RANGE(0xfe0000, 0xffffff) AM_READ8(pc9801rs_ipl_r, 0xffff) @@ -2421,7 +2421,7 @@ static ADDRESS_MAP_START( pc9821_map, AS_PROGRAM, 32, pc9801_state ) AM_RANGE(0x000a4000, 0x000a4fff) AM_READWRITE8(pc9801rs_knjram_r, pc9801rs_knjram_w, 0xffffffff) AM_RANGE(0x000a8000, 0x000bffff) AM_READWRITE16(grcg_gvram_r, grcg_gvram_w, 0xffffffff) AM_RANGE(0x000cc000, 0x000cdfff) AM_ROM AM_REGION("sound_bios",0) //sound BIOS -// AM_RANGE(0x000d8000, 0x000d9fff) AM_ROM AM_REGION("ide",0) +// AM_RANGE(0x000d8000, 0x000d9fff) AM_ROM AM_REGION("ide",0) AM_RANGE(0x000da000, 0x000dbfff) AM_RAM // ide ram AM_RANGE(0x000e0000, 0x000e7fff) AM_READWRITE16(grcg_gvram0_r,grcg_gvram0_w, 0xffffffff) AM_RANGE(0x000e0000, 0x000fffff) AM_READ8(pc9801rs_ipl_r, 0xffffffff) diff --git a/src/mess/drivers/segapico.c b/src/mess/drivers/segapico.c index 5bd8d993551..8cf04bc03a5 100644 --- a/src/mess/drivers/segapico.c +++ b/src/mess/drivers/segapico.c @@ -258,7 +258,7 @@ READ16_MEMBER(pico_base_state::pico_68k_io_read ) For reads, if bit 15 is cleared, it means PCM is 'busy' or something like that, as games sometimes wait for it to become 1. */ - // return (m_upd7759->busy_r()^1) << 15; + // return (m_upd7759->busy_r()^1) << 15; // The BUSY bit stays 1 as long as some PCM sound is playing. // SMPS drivers check 800012 [byte] and clear the "prevent music PCM" byte when the READY bit gets set. // If this is done incorrectly, the voices in Sonic Gameworld (J) are muted by the music's PCM drums. @@ -299,10 +299,10 @@ WRITE16_MEMBER(pico_base_state::pico_68k_io_write ) if (mem_mask & 0x00FF) m_sega_315_5641_pcm->port_w(space, 0, (data >> 0) & 0xFF); break; - case 0x12/2: // guess + case 0x12/2: // guess // Note about uPD7759 lines: - // reset line: 1 - normal, 1->0 - reset chip, 0 - playback disabled - // start line: 0->1 - start playback + // reset line: 1 - normal, 1->0 - reset chip, 0 - playback disabled + // start line: 0->1 - start playback if (mem_mask & 0xFF00) { // I assume that: @@ -316,14 +316,14 @@ WRITE16_MEMBER(pico_base_state::pico_68k_io_write ) // Somewhere between "Reset Off" and the first sample data, // we need to send a few commands to make the sample stream work. // Doing that when rising the "start" line seems to work fine. - m_sega_315_5641_pcm->port_w(space, 0, 0xFF); // "Last Sample" value (must be >= 0x10) - m_sega_315_5641_pcm->port_w(space, 0, 0x00); // Dummy 1 - m_sega_315_5641_pcm->port_w(space, 0, 0x00); // Addr MSB - m_sega_315_5641_pcm->port_w(space, 0, 0x00); // Addr LSB + m_sega_315_5641_pcm->port_w(space, 0, 0xFF); // "Last Sample" value (must be >= 0x10) + m_sega_315_5641_pcm->port_w(space, 0, 0x00); // Dummy 1 + m_sega_315_5641_pcm->port_w(space, 0, 0x00); // Addr MSB + m_sega_315_5641_pcm->port_w(space, 0, 0x00); // Addr LSB } } - - + + /*m_sega_315_5641_pcm->reset_w(0); m_sega_315_5641_pcm->start_w(0); m_sega_315_5641_pcm->reset_w(1); diff --git a/src/mess/drivers/squale.c b/src/mess/drivers/squale.c index 64af17dcd5c..def2dd00257 100644 --- a/src/mess/drivers/squale.c +++ b/src/mess/drivers/squale.c @@ -3,50 +3,50 @@ /*************************************************************************** Apollo 7 Squale - - PCB Ref Qty Manufacturer Ref Description / Datasheet - ============================================================================================ - U1 1 EF6809P 8-BIT MICROPROCESSOR UNIT (MPU) - U2 1 27C32 / 27C64 EPROM - U72,U75 1 EF6821P PERIPHERAL INTERFACE ADAPTER (PIA) - U69 1 EF6850 ASYNCHRONOUS COMMUNICATIONS INTERFACE ADAPTER (ACIA) - U59 1 EF9365P GRAPHIC DISPLAY PROCESSOR (GDP) - U65 1 AY-3-8910A PROGRAMMABLE SOUND GENERATOR - U16,U17,U18,U19, - U20,U21,U22,U23 8 MK4564 65,536 x 1-BIT DYNAMIC RAM - U38,U39,U40,U41, - U42,U43,U44,U45, - U46,U47,U48,U49, - U50,U51,U52,U53 16 TMS4116 16,384-BIT DYNAMIC RAM - U68 1 EFB7510 SINGLE CHIP ASYNCHRONOUS FSK MODEM - - - Memory map - ========== - - Périphériques Adresses - ========================================================= - EPROM 0xF100-0xFFFF - Extension Port 0xF080-0xF0FF - FREE 0xF070-0xF07F - AY-3-8910A 0xF060-0xF06F - ACIA EF6850 (Modem + K7) 0xF050-0xF05F - Restricted area 0xF04C-0xF04F - PIO EF6821 (Printer + Cartridge) 0xF048-0xF04B - PIO EF6821 (Keyboard) 0xF044-0xF047 - FREE 0xF040-0xF043 - VID_RD2 0xF030-0xF03F - VID_RD1 0xF020-0xF02F - REG1 0xF010-0xF01F - Video Controller EF9365 0xF000-0xF00F - System RAM 0x0000-0xEFFF - - - Notes: - 1) For 8KB versions of the monitor, the bank switching is done via bit 7 of REG1. - 2) VID_RD1 : [7..0] = I0,R0,G0,B0,I1,R1,G1,B1 (I=Intensity,R=Red,G=Green,B=Blue) - 3) VID_RD2 : [7..0] = I2,R2,G2,B2,I3,R3,G3,B3 (I=Intensity,R=Red,G=Green,B=Blue) - 3) REG1 : [7..0] = EPROM Bank,-,Modem,K7,I,R,G,B (I=Intensity,R=Red,V=Green,B=Blue) + + PCB Ref Qty Manufacturer Ref Description / Datasheet + ============================================================================================ + U1 1 EF6809P 8-BIT MICROPROCESSOR UNIT (MPU) + U2 1 27C32 / 27C64 EPROM + U72,U75 1 EF6821P PERIPHERAL INTERFACE ADAPTER (PIA) + U69 1 EF6850 ASYNCHRONOUS COMMUNICATIONS INTERFACE ADAPTER (ACIA) + U59 1 EF9365P GRAPHIC DISPLAY PROCESSOR (GDP) + U65 1 AY-3-8910A PROGRAMMABLE SOUND GENERATOR + U16,U17,U18,U19, + U20,U21,U22,U23 8 MK4564 65,536 x 1-BIT DYNAMIC RAM + U38,U39,U40,U41, + U42,U43,U44,U45, + U46,U47,U48,U49, + U50,U51,U52,U53 16 TMS4116 16,384-BIT DYNAMIC RAM + U68 1 EFB7510 SINGLE CHIP ASYNCHRONOUS FSK MODEM + + + Memory map + ========== + + Periphiriques Adresses + ========================================================= + EPROM 0xF100-0xFFFF + Extension Port 0xF080-0xF0FF + FREE 0xF070-0xF07F + AY-3-8910A 0xF060-0xF06F + ACIA EF6850 (Modem + K7) 0xF050-0xF05F + Restricted area 0xF04C-0xF04F + PIO EF6821 (Printer + Cartridge) 0xF048-0xF04B + PIO EF6821 (Keyboard) 0xF044-0xF047 + FREE 0xF040-0xF043 + VID_RD2 0xF030-0xF03F + VID_RD1 0xF020-0xF02F + REG1 0xF010-0xF01F + Video Controller EF9365 0xF000-0xF00F + System RAM 0x0000-0xEFFF + + + Notes: + 1) For 8KB versions of the monitor, the bank switching is done via bit 7 of REG1. + 2) VID_RD1 : [7..0] = I0,R0,G0,B0,I1,R1,G1,B1 (I=Intensity,R=Red,G=Green,B=Blue) + 3) VID_RD2 : [7..0] = I2,R2,G2,B2,I3,R3,G3,B3 (I=Intensity,R=Red,G=Green,B=Blue) + 3) REG1 : [7..0] = EPROM Bank,-,Modem,K7,I,R,G,B (I=Intensity,R=Red,V=Green,B=Blue) ****************************************************************************/ #include "emu.h" @@ -96,4 +96,4 @@ ROM_END /* Driver */ /* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS */ -COMP( 1984, squale, 0, 0, squale, squale,driver_device, 0, "Apollo 7", "Squale", MACHINE_IS_SKELETON ) +COMP( 1984, squale, 0, 0, squale, squale,driver_device, 0, "Apollo 7", "Squale", MACHINE_IS_SKELETON ) diff --git a/src/mess/drivers/zapcomputer.c b/src/mess/drivers/zapcomputer.c index a234d3e22a1..a2a81a32d64 100644 --- a/src/mess/drivers/zapcomputer.c +++ b/src/mess/drivers/zapcomputer.c @@ -30,107 +30,107 @@ #include "zapcomputer.lh" static unsigned char decode7seg(int data){ - //These are bit patterns representing the conversion of 4bit values - //into the status of the segments of the 7 segment displays - //controlled by a 82S23 PROM - - unsigned char patterns[16] = { - 0x77, 0x41, 0x6e, 0x6b, - 0x59, 0x3b, 0x3f, 0x61, - 0x7f, 0x79, 0x7d, 0x1f, - 0x36, 0x4f, 0x3e, 0x3c - }; - - // Bit order for the FAIRCHILD FND-70 - // 7-SEGMENT LCD: . g f e d c b a - return BITSWAP8(patterns[data & 0x0F], 7, 3, 4, 2, 1, 0, 6, 5); + //These are bit patterns representing the conversion of 4bit values + //into the status of the segments of the 7 segment displays + //controlled by a 82S23 PROM + + unsigned char patterns[16] = { + 0x77, 0x41, 0x6e, 0x6b, + 0x59, 0x3b, 0x3f, 0x61, + 0x7f, 0x79, 0x7d, 0x1f, + 0x36, 0x4f, 0x3e, 0x3c + }; + + // Bit order for the FAIRCHILD FND-70 + // 7-SEGMENT LCD: . g f e d c b a + return BITSWAP8(patterns[data & 0x0F], 7, 3, 4, 2, 1, 0, 6, 5); } - + WRITE8_MEMBER(zapcomp_state::display_7seg_w){ - switch (offset){ - case 0: //Port 0x05 : address HI - output_set_digit_value(0, decode7seg(data >> 4)); - output_set_digit_value(1, decode7seg(data)); - break; - case 1: //Port 0x06 : address LOW - output_set_digit_value(2, decode7seg(data >> 4)); - output_set_digit_value(3, decode7seg(data)); - break; - case 2: //Port 0x07 : data - output_set_digit_value(4, decode7seg(data >> 4)); - output_set_digit_value(5, decode7seg(data)); - break; - default: - break; - } + switch (offset){ + case 0: //Port 0x05 : address HI + output_set_digit_value(0, decode7seg(data >> 4)); + output_set_digit_value(1, decode7seg(data)); + break; + case 1: //Port 0x06 : address LOW + output_set_digit_value(2, decode7seg(data >> 4)); + output_set_digit_value(3, decode7seg(data)); + break; + case 2: //Port 0x07 : data + output_set_digit_value(4, decode7seg(data >> 4)); + output_set_digit_value(5, decode7seg(data)); + break; + default: + break; + } } READ8_MEMBER(zapcomp_state::keyboard_r){ - unsigned char retval = 0x00; - unsigned char special = ioport("special_keys")->read(); - unsigned int hex_keys = (ioport("hex_keys_2")->read() << 8) | ioport("hex_keys_1")->read(); + unsigned char retval = 0x00; + unsigned char special = ioport("special_keys")->read(); + unsigned int hex_keys = (ioport("hex_keys_2")->read() << 8) | ioport("hex_keys_1")->read(); - if (special & 0x04) /* "SHIFT" key is pressed */ - retval = 0x40; /* turn on the SHIFT bit but DO NOT turn on the strobe bit */ + if (special & 0x04) /* "SHIFT" key is pressed */ + retval = 0x40; /* turn on the SHIFT bit but DO NOT turn on the strobe bit */ - if (special & 0x02) /* "NEXT" key is pressed */ - retval |= 0xA0; /* turn on the strobe & NEXT bits */ + if (special & 0x02) /* "NEXT" key is pressed */ + retval |= 0xA0; /* turn on the strobe & NEXT bits */ - if (special & 0x01) /* "EXEC" key is pressed */ - retval |= 0x90; /* turn on the strobe & EXEC bit */ + if (special & 0x01) /* "EXEC" key is pressed */ + retval |= 0x90; /* turn on the strobe & EXEC bit */ - for (int i=0; i<16; i++){ - if (hex_keys & (1 << i)){ - retval |= (0x80 | i); /* provide the key index in bits 3-0 + for (int i=0; i<16; i++){ + if (hex_keys & (1 << i)){ + retval |= (0x80 | i); /* provide the key index in bits 3-0 as well as turning on the strobe bit */ - } - } - return retval; + } + } + return retval; } static ADDRESS_MAP_START( zapcomp_mem, AS_PROGRAM, 8, zapcomp_state ) - AM_RANGE(0x0000, 0x03ff) AM_ROM /* system monitor */ - AM_RANGE(0x0400, 0x07ff) AM_RAM /* mandatory 1 kilobyte bank #0 */ - AM_RANGE(0x0800, 0x0bff) AM_RAM /* extra 1 kilobyte bank #1 (optional) */ - AM_RANGE(0x0c00, 0x0fff) AM_RAM /* extra 1 kilobyte bank #2 (optional) */ - AM_RANGE(0x1000, 0x13ff) AM_RAM /* extra 1 kilobyte bank #3 (optional) */ - AM_RANGE(0x1400, 0x17ff) AM_RAM /* extra 1 kilobyte bank #4 (optional) */ - AM_RANGE(0x1800, 0x1bff) AM_RAM /* extra 1 kilobyte bank #5 (optional) */ - AM_RANGE(0x1c00, 0x1fff) AM_RAM /* extra 1 kilobyte bank #6 (optional) */ - AM_RANGE(0x2000, 0x23ff) AM_RAM /* extra 1 kilobyte bank #7 (optional) */ + AM_RANGE(0x0000, 0x03ff) AM_ROM /* system monitor */ + AM_RANGE(0x0400, 0x07ff) AM_RAM /* mandatory 1 kilobyte bank #0 */ + AM_RANGE(0x0800, 0x0bff) AM_RAM /* extra 1 kilobyte bank #1 (optional) */ + AM_RANGE(0x0c00, 0x0fff) AM_RAM /* extra 1 kilobyte bank #2 (optional) */ + AM_RANGE(0x1000, 0x13ff) AM_RAM /* extra 1 kilobyte bank #3 (optional) */ + AM_RANGE(0x1400, 0x17ff) AM_RAM /* extra 1 kilobyte bank #4 (optional) */ + AM_RANGE(0x1800, 0x1bff) AM_RAM /* extra 1 kilobyte bank #5 (optional) */ + AM_RANGE(0x1c00, 0x1fff) AM_RAM /* extra 1 kilobyte bank #6 (optional) */ + AM_RANGE(0x2000, 0x23ff) AM_RAM /* extra 1 kilobyte bank #7 (optional) */ ADDRESS_MAP_END static ADDRESS_MAP_START( zapcomp_io, AS_IO, 8, zapcomp_state ) - ADDRESS_MAP_GLOBAL_MASK(0xff) - AM_RANGE(0x00, 0x00) AM_READ(keyboard_r) - AM_RANGE(0x05, 0x07) AM_WRITE(display_7seg_w) + ADDRESS_MAP_GLOBAL_MASK(0xff) + AM_RANGE(0x00, 0x00) AM_READ(keyboard_r) + AM_RANGE(0x05, 0x07) AM_WRITE(display_7seg_w) ADDRESS_MAP_END static INPUT_PORTS_START( zapcomp ) - PORT_START("hex_keys_1") - PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CHAR('0') - PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CHAR('1') - PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CHAR('2') - PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_CHAR('3') - PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_CHAR('4') - PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CHAR('5') - PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CHAR('6') - PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_7) PORT_CHAR('7') - - PORT_START("hex_keys_2") - PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CHAR('8') - PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_9) PORT_CHAR('9') - PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_A) PORT_CHAR('a') - PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_B) PORT_CHAR('b') - PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_C) PORT_CHAR('c') - PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_D) PORT_CHAR('d') - PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_E) PORT_CHAR('e') - PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F) PORT_CHAR('f') - - PORT_START("special_keys") - PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("EXEC") PORT_CODE(KEYCODE_ENTER) - PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("NEXT") PORT_CODE(KEYCODE_RIGHT) - PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) + PORT_START("hex_keys_1") + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CHAR('0') + PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CHAR('1') + PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CHAR('2') + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_CHAR('3') + PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_CHAR('4') + PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CHAR('5') + PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CHAR('6') + PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_7) PORT_CHAR('7') + + PORT_START("hex_keys_2") + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CHAR('8') + PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_9) PORT_CHAR('9') + PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_A) PORT_CHAR('a') + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_B) PORT_CHAR('b') + PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_C) PORT_CHAR('c') + PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_D) PORT_CHAR('d') + PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_E) PORT_CHAR('e') + PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F) PORT_CHAR('f') + + PORT_START("special_keys") + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("EXEC") PORT_CODE(KEYCODE_ENTER) + PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("NEXT") PORT_CODE(KEYCODE_RIGHT) + PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) INPUT_PORTS_END void zapcomp_state::machine_start() @@ -138,19 +138,19 @@ void zapcomp_state::machine_start() } static MACHINE_CONFIG_START( zapcomp, zapcomp_state ) - // basic machine hardware - MCFG_CPU_ADD("maincpu", Z80, XTAL_2MHz) - MCFG_CPU_PROGRAM_MAP(zapcomp_mem) - MCFG_CPU_IO_MAP(zapcomp_io) - - /* video hardware */ - MCFG_DEFAULT_LAYOUT(layout_zapcomputer) + // basic machine hardware + MCFG_CPU_ADD("maincpu", Z80, XTAL_2MHz) + MCFG_CPU_PROGRAM_MAP(zapcomp_mem) + MCFG_CPU_IO_MAP(zapcomp_io) + + /* video hardware */ + MCFG_DEFAULT_LAYOUT(layout_zapcomputer) MACHINE_CONFIG_END ROM_START( zapcomp ) - ROM_REGION( 0x10000, "maincpu", 0 ) - ROM_LOAD("zap.rom", 0x0000, 0x0400, CRC(cedad5d5) SHA1(576adfafbe5475004675638c1703415f8c468c6f)) + ROM_REGION( 0x10000, "maincpu", 0 ) + ROM_LOAD("zap.rom", 0x0000, 0x0400, CRC(cedad5d5) SHA1(576adfafbe5475004675638c1703415f8c468c6f)) ROM_END // YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS -COMP( 1981, zapcomp, 0, 0, zapcomp, zapcomp, driver_device, 0, "Steve Ciarcia / BYTE / McGRAW-HILL", "ZAP - Z80 Applications Processor", MACHINE_NOT_WORKING | MACHINE_NO_SOUND )
\ No newline at end of file +COMP( 1981, zapcomp, 0, 0, zapcomp, zapcomp, driver_device, 0, "Steve Ciarcia / BYTE / McGRAW-HILL", "ZAP - Z80 Applications Processor", MACHINE_NOT_WORKING | MACHINE_NO_SOUND ) |