Previous 199869 Revisions Next

r19094 Wednesday 21st November, 2012 at 19:34:38 UTC by Sandro Ronco
(MESS) geniusiq: added a configuration option to simulate the presence of the ROMless cartridges. (nw)
[src/mess/drivers]geniusiq.c

trunk/src/mess/drivers/geniusiq.c
r19093r19094
343343   //AM_RANGE(0x600600, 0x600605)                      // sound ??
344344   AM_RANGE(0x600606, 0x600609) AM_WRITE(gfx_base_w)
345345   AM_RANGE(0x60060a, 0x60060b) AM_WRITE(gfx_idx_w)
346   //AM_RANGE(0x600802, 0x600803)                      // cartridge state
346   AM_RANGE(0x600802, 0x600803) AM_READ_PORT("CART")   // cartridge state
347347   AM_RANGE(0x600918, 0x600919) AM_READ(unk0_r)        // loop at start if bit 0 is set
348348   AM_RANGE(0x601008, 0x601009) AM_READ(unk_r)         // unknown, read at start and expect that bit 2 changes several times before continue
349349   AM_RANGE(0x601010, 0x601011) AM_READ(unk0_r)      // loop at start if bit 1 is set
r19093r19094
510510   PORT_START("MOUSE")
511511   PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON2 )   PORT_NAME("Mouse Button 2")      PORT_CODE(MOUSECODE_BUTTON2)   PORT_CHANGED_MEMBER( DEVICE_SELF, geniusiq_state, send_mouse_input, 0 )
512512   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON1 )   PORT_NAME("Mouse Button 1")      PORT_CODE(MOUSECODE_BUTTON1)   PORT_CHANGED_MEMBER( DEVICE_SELF, geniusiq_state, send_mouse_input, 0 )
513
514   PORT_START("CART")
515   PORT_CONFNAME( 0x03, 0x03, "Cartridge" )
516   PORT_CONFSETTING( 0x00, "ROM/Flash cartridge" )   // check for cartridge header at 0xa00000
517   PORT_CONFSETTING( 0x01, "Cartouche I" )
518   PORT_CONFSETTING( 0x02, "Cartouche II" )
519   PORT_CONFSETTING( 0x03, "No cartridge" )
513520INPUT_PORTS_END
514521
515522
r19093r19094
555562   PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE( KEYCODE_A )         PORT_CHAR('a')   PORT_CHAR('A')   PORT_CHANGED_MEMBER( DEVICE_SELF, geniusiq_state, send_input, 0x64 )
556563   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE( KEYCODE_Q )         PORT_CHAR('q')   PORT_CHAR('Q')   PORT_CHANGED_MEMBER( DEVICE_SELF, geniusiq_state, send_input, 0x65 )
557564   PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE( KEYCODE_1 )         PORT_CHAR('1')   PORT_CHAR('!')   PORT_CHANGED_MEMBER( DEVICE_SELF, geniusiq_state, send_input, 0x66 )
565
566   PORT_MODIFY("CART")
567   PORT_CONFNAME( 0x03, 0x03, "Cartridge" )
568   PORT_CONFSETTING( 0x00, "ROM/Flash cartridge" )   // check for cartridge header at 0xa00000
569   PORT_CONFSETTING( 0x01, "Fit in Naturwissenschaften" )
570   PORT_CONFSETTING( 0x02, "No cartridge" )
571   PORT_CONFSETTING( 0x03, "No cartridge" )
558572INPUT_PORTS_END
559573
560574

Previous 199869 Revisions Next


© 1997-2024 The MAME Team