src/mess/drivers/sms.c
| r4480 | r4481 | |
| 244 | 244 | PORT_START("START") |
| 245 | 245 | PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 246 | 246 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START ) PORT_NAME("Start") /* Game Gear START */ |
| 247 | | |
| 248 | | PORT_START("CTRLSEL") /* Controller selection */ |
| 249 | | PORT_CATEGORY_CLASS( 0x0F, 0x00, "Player 1 Controller" ) |
| 250 | | PORT_CATEGORY_ITEM( 0x00, DEF_STR( Joystick ), 10 ) |
| 251 | | // PORT_CATEGORY_ITEM( 0x01, "Light Phaser", 11 ) |
| 252 | | PORT_CATEGORY_ITEM( 0x02, "Sega Paddle Control", 12 ) |
| 253 | | PORT_CATEGORY_ITEM( 0x03, "Sega Sports Pad", 13 ) |
| 254 | | PORT_CATEGORY_CLASS( 0xF0, 0x00, "Player 2 Controller" ) |
| 255 | | PORT_CATEGORY_ITEM( 0x00, DEF_STR( Joystick ), 20 ) |
| 256 | | // PORT_CATEGORY_ITEM( 0x10, "Light Phaser", 21 ) |
| 257 | | PORT_CATEGORY_ITEM( 0x20, "Sega Paddle Control", 22 ) |
| 258 | | PORT_CATEGORY_ITEM( 0x30, "Sega Sports Pad", 23 ) |
| 259 | 247 | INPUT_PORTS_END |
| 260 | 248 | |
| 261 | | static PALETTE_INIT( sms ) { |
| 249 | static PALETTE_INIT( sms ) |
| 250 | { |
| 262 | 251 | int i; |
| 263 | | for( i = 0; i < 64; i++ ) { |
| 252 | for( i = 0; i < 64; i++ ) |
| 253 | { |
| 264 | 254 | int r = i & 0x03; |
| 265 | 255 | int g = ( i & 0x0C ) >> 2; |
| 266 | 256 | int b = ( i & 0x30 ) >> 4; |
| r4480 | r4481 | |
| 285 | 275 | palette_set_color_rgb(machine, 64+15, 255, 255, 255 ); |
| 286 | 276 | } |
| 287 | 277 | |
| 288 | | static PALETTE_INIT( gamegear ) { |
| 278 | static PALETTE_INIT( gamegear ) |
| 279 | { |
| 289 | 280 | int i; |
| 290 | | for( i = 0; i < 4096; i++ ) { |
| 281 | for( i = 0; i < 4096; i++ ) |
| 282 | { |
| 291 | 283 | int r = i & 0x000F; |
| 292 | 284 | int g = ( i & 0x00F0 ) >> 4; |
| 293 | 285 | int b = ( i & 0x0F00 ) >> 8; |
| r4480 | r4481 | |
| 300 | 292 | static const smsvdp_configuration config_315_5378 = { MODEL_315_5378, sms_int_callback }; |
| 301 | 293 | static const smsvdp_configuration config_store = { MODEL_315_5124, sms_store_int_callback }; |
| 302 | 294 | |
| 303 | | static VIDEO_START(sega_315_5124) { |
| 295 | static VIDEO_START(sega_315_5124) |
| 296 | { |
| 304 | 297 | smsvdp_video_init( machine, &config_315_5124 ); |
| 305 | 298 | } |
| 306 | 299 | |
| 307 | | static VIDEO_START(sega_315_5246) { |
| 300 | static VIDEO_START(sega_315_5246) |
| 301 | { |
| 308 | 302 | smsvdp_video_init( machine, &config_315_5246 ); |
| 309 | 303 | } |
| 310 | 304 | |
| 311 | | static VIDEO_START(sega_315_5378) { |
| 305 | static VIDEO_START(sega_315_5378) |
| 306 | { |
| 312 | 307 | smsvdp_video_init( machine, &config_315_5378 ); |
| 313 | 308 | } |
| 314 | 309 | |
| 315 | | static VIDEO_START(sega_store_315_5124) { |
| 310 | static VIDEO_START(sega_store_315_5124) |
| 311 | { |
| 316 | 312 | smsvdp_video_init( machine, &config_store ); |
| 317 | 313 | } |
| 318 | 314 | |
| r4480 | r4481 | |
| 619 | 615 | ***************************************************************************/ |
| 620 | 616 | |
| 621 | 617 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 622 | | CONS( 1984, sg1000m3, sms, 0, sg1000m3, sms, sg1000m3, 0, "Sega", "SG-1000 Mark III", 0 ) |
| 618 | CONS( 1984, sg1000m3, sms, 0, sg1000m3, sms, sg1000m3, 0, "Sega", "SG-1000 Mark III", 0 ) |
| 623 | 619 | CONS( 1986, sms1, sms, 0, sms1ntsc, sms, sms1, 0, "Sega", "Master System I", 0 ) |
| 624 | 620 | CONS( 1986, sms1pal, sms, 0, sms1pal, sms, sms1, 0, "Sega", "Master System I (PAL)" , 0 ) |
| 625 | | CONS( 1986, smssdisp, sms, 0, smssdisp, sms, smssdisp, 0, "Sega", "Master System Store Display Unit", GAME_NOT_WORKING ) |
| 621 | CONS( 1986, smssdisp, sms, 0, smssdisp, sms, smssdisp, 0, "Sega", "Master System Store Display Unit", GAME_NOT_WORKING ) |
| 626 | 622 | CONS( 1987, smsj, sms, 0, smsfm, sms, smsj, 0, "Sega", "Master System (Japan)", 0 ) |
| 627 | 623 | CONS( 1990, sms, 0, 0, sms2ntsc, sms, sms1, 0, "Sega", "Master System II", 0 ) |
| 628 | 624 | CONS( 1990, smspal, sms, 0, sms2pal, sms, sms1, 0, "Sega", "Master System II (PAL)", 0 ) |
| 629 | 625 | CONS( 1990, sms2kr, sms, 0, sms2fm, sms, sms2kr, 0, "Samsung", "Gam*Boy II (Korea)", 0 ) |
| 630 | 626 | |
| 631 | | CONS( 1990, gamegear, 0, sms, gamegear, gg, gamegear, 0, "Sega", "Game Gear (Europe/America)", 0 ) |
| 632 | | CONS( 1990, gamegeaj, gamegear, 0, gamegear, gg, gamegeaj, 0, "Sega", "Game Gear (Japan)", 0 ) |
| 627 | CONS( 1990, gamegear, 0, sms, gamegear, gg, gamegear, 0, "Sega", "Game Gear (Europe/America)", 0 ) |
| 628 | CONS( 1990, gamegeaj, gamegear, 0, gamegear, gg, gamegeaj, 0, "Sega", "Game Gear (Japan)", 0 ) |