trunk/src/mame/drivers/goldstar.c
| r244953 | r244954 | |
| 6957 | 6957 | } |
| 6958 | 6958 | |
| 6959 | 6959 | |
| 6960 | | static MACHINE_CONFIG_START( chrygld, cb3_state ) |
| 6961 | | |
| 6962 | | /* basic machine hardware */ |
| 6963 | | MCFG_CPU_ADD("maincpu", Z80, CPU_CLOCK) |
| 6964 | | MCFG_CPU_PROGRAM_MAP(ncb3_map) |
| 6965 | | MCFG_CPU_IO_MAP(ncb3_readwriteport) |
| 6966 | | MCFG_CPU_VBLANK_INT_DRIVER("screen", goldstar_state, irq0_line_hold) |
| 6967 | | |
| 6968 | | MCFG_DEVICE_ADD("ppi8255_0", I8255A, 0) |
| 6969 | | MCFG_I8255_IN_PORTA_CB(IOPORT("IN0")) |
| 6970 | | MCFG_I8255_IN_PORTB_CB(IOPORT("IN3")) //Player2 controls, confirmed |
| 6971 | | |
| 6972 | | MCFG_DEVICE_ADD("ppi8255_1", I8255A, 0) |
| 6973 | | MCFG_I8255_IN_PORTA_CB(IOPORT("IN1")) |
| 6974 | | MCFG_I8255_IN_PORTB_CB(IOPORT("IN2")) |
| 6975 | | MCFG_I8255_IN_PORTC_CB(IOPORT("DSW1")) |
| 6976 | | |
| 6977 | | MCFG_DEVICE_ADD("ppi8255_2", I8255A, 0) |
| 6978 | | MCFG_I8255_IN_PORTA_CB(IOPORT("DSW2")) |
| 6979 | | |
| 6980 | | /* video hardware */ |
| 6981 | | MCFG_SCREEN_ADD("screen", RASTER) |
| 6982 | | MCFG_SCREEN_REFRESH_RATE(60) |
| 6983 | | // MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 6984 | | MCFG_SCREEN_SIZE(64*8, 32*8) |
| 6985 | | MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1) |
| 6986 | | MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar) |
| 6987 | | MCFG_SCREEN_PALETTE("palette") |
| 6988 | | |
| 6989 | | MCFG_GFXDECODE_ADD("gfxdecode", "palette", chry10) |
| 6990 | | MCFG_PALETTE_ADD("palette", 256) |
| 6991 | | MCFG_PALETTE_INIT_OWNER(goldstar_state,cm) |
| 6992 | | MCFG_NVRAM_ADD_1FILL("nvram") |
| 6993 | | |
| 6994 | | MCFG_VIDEO_START_OVERRIDE(goldstar_state,goldstar) |
| 6995 | | |
| 6996 | | /* sound hardware */ |
| 6997 | | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 6998 | | |
| 6999 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 7000 | | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 7001 | | |
| 7002 | | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
| 7003 | | MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) |
| 7004 | | MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW3")) |
| 7005 | | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 7006 | | MACHINE_CONFIG_END |
| 7007 | | |
| 7008 | | |
| 7009 | | |
| 7010 | 6960 | static MACHINE_CONFIG_START( ncb3, cb3_state ) |
| 7011 | 6961 | |
| 7012 | 6962 | /* basic machine hardware */ |
| r244953 | r244954 | |
| 7064 | 7014 | MCFG_GFXDECODE_MODIFY("gfxdecode", cb3e) |
| 7065 | 7015 | MACHINE_CONFIG_END |
| 7066 | 7016 | |
| 7017 | static MACHINE_CONFIG_DERIVED( chrygld, ncb3 ) |
| 7018 | MCFG_GFXDECODE_MODIFY("gfxdecode", chry10) |
| 7019 | MACHINE_CONFIG_END |
| 7020 | |
| 7067 | 7021 | static MACHINE_CONFIG_DERIVED( cherrys, ncb3 ) |
| 7068 | 7022 | MCFG_GFXDECODE_MODIFY("gfxdecode", cherrys) |
| 7069 | 7023 | MACHINE_CONFIG_END |
| r244953 | r244954 | |
| 7073 | 7027 | MACHINE_CONFIG_END |
| 7074 | 7028 | |
| 7075 | 7029 | |
| 7076 | | |
| 7077 | 7030 | static MACHINE_CONFIG_START( wcherry, goldstar_state ) |
| 7078 | 7031 | |
| 7079 | 7032 | /* basic machine hardware */ |
| r244953 | r244954 | |
| 7123 | 7076 | MACHINE_CONFIG_END |
| 7124 | 7077 | |
| 7125 | 7078 | |
| 7126 | | |
| 7127 | 7079 | static MACHINE_CONFIG_START( cm, cmaster_state ) |
| 7128 | 7080 | |
| 7129 | 7081 | /* basic machine hardware */ |
trunk/src/mame/layout/cherryb3.lay
| r244953 | r244954 | |
| 214 | 214 | |
| 215 | 215 | <!-- define lamps --> |
| 216 | 216 | |
| 217 | | <bezel name="lamp0" element="stop_b"> |
| 217 | <bezel name="lamp0" element="stop_b" inputtag="IN0" inputmask="0x04"> |
| 218 | 218 | <bounds x="2.05" y="3.08" width="0.50" height="0.24" /> |
| 219 | 219 | </bezel> |
| 220 | | <bezel name="lamp0" element="stop2"> |
| 220 | <bezel name="lamp0" element="stop2" inputtag="IN0" inputmask="0x04"> |
| 221 | 221 | <bounds x="2.07" y="3.10" width="0.46" height="0.20" /> |
| 222 | 222 | </bezel> |
| 223 | 223 | |
| 224 | 224 | |
| 225 | | <bezel name="lamp1" element="dup_b"> |
| 225 | <bezel name="lamp1" element="dup_b" inputtag="IN0" inputmask="0x08"> |
| 226 | 226 | <bounds x="0.65" y="3.08" width="0.50" height="0.24" /> |
| 227 | 227 | </bezel> |
| 228 | | <bezel name="lamp1" element="dup"> |
| 228 | <bezel name="lamp1" element="dup" inputtag="IN0" inputmask="0x08"> |
| 229 | 229 | <bounds x="0.67" y="3.10" width="0.46" height="0.20" /> |
| 230 | 230 | </bezel> |
| 231 | 231 | |
| 232 | 232 | |
| 233 | | <bezel name="lamp2" element="stop_b"> |
| 233 | <bezel name="lamp2" element="stop_b" inputtag="IN0" inputmask="0x10"> |
| 234 | 234 | <bounds x="1.4" y="3.08" width="0.50" height="0.24" /> |
| 235 | 235 | </bezel> |
| 236 | | <bezel name="lamp2" element="stop1"> |
| 236 | <bezel name="lamp2" element="stop1" inputtag="IN0" inputmask="0x10"> |
| 237 | 237 | <bounds x="1.42" y="3.10" width="0.46" height="0.20" /> |
| 238 | 238 | </bezel> |
| 239 | 239 | |
| 240 | 240 | |
| 241 | | <bezel name="lamp3" element="bet_b"> |
| 241 | <bezel name="lamp3" element="bet_b" inputtag="IN0" inputmask="0x20"> |
| 242 | 242 | <bounds x="0.05" y="3.08" width="0.40" height="0.24" /> |
| 243 | 243 | </bezel> |
| 244 | | <bezel name="lamp3" element="bet"> |
| 244 | <bezel name="lamp3" element="bet" inputtag="IN0" inputmask="0x20"> |
| 245 | 245 | <bounds x="0.07" y="3.10" width="0.36" height="0.20" /> |
| 246 | 246 | </bezel> |
| 247 | 247 | |
| 248 | 248 | |
| 249 | | <bezel name="lamp4" element="stop_b"> |
| 249 | <bezel name="lamp4" element="stop_b" inputtag="IN0" inputmask="0x40"> |
| 250 | 250 | <bounds x="2.7" y="3.08" width="0.50" height="0.24" /> |
| 251 | 251 | </bezel> |
| 252 | | <bezel name="lamp4" element="stop3"> |
| 252 | <bezel name="lamp4" element="stop3" inputtag="IN0" inputmask="0x40"> |
| 253 | 253 | <bounds x="2.72" y="3.10" width="0.46" height="0.20" /> |
| 254 | 254 | </bezel> |
| 255 | 255 | |
| 256 | 256 | |
| 257 | | <bezel name="lamp5" element="start_b"> |
| 257 | <bezel name="lamp5" element="start_b" inputtag="IN0" inputmask="0x80"> |
| 258 | 258 | <bounds x="3.45" y="3.08" width="0.50" height="0.24" /> |
| 259 | 259 | </bezel> |
| 260 | | <bezel name="lamp5" element="start"> |
| 260 | <bezel name="lamp5" element="start" inputtag="IN0" inputmask="0x80"> |
| 261 | 261 | <bounds x="3.47" y="3.10" width="0.46" height="0.20" /> |
| 262 | 262 | </bezel> |
| 263 | 263 | |