hmm, i can't get golgo13 gun aim working, something wrong with h8_adc?

This commit is contained in:
Michaël Banaan Ananas 2014-04-09 19:03:17 +00:00
parent 5c4460701e
commit b2e6bfcdb6

View File

@ -1508,21 +1508,16 @@ static ADDRESS_MAP_START( s12h8iomap, AS_IO, 16, namcos12_state )
ADDRESS_MAP_END ADDRESS_MAP_END
/* Golgo 13 lightgun inputs // Golgo 13 lightgun inputs
*
* Note: The H8/3002's ADC is 10 bits wide, but
* it expects the 10-bit value to be left-justified
* within the 16-bit word.
*/
READ16_MEMBER(namcos12_state::s12_mcu_gun_h_r) READ16_MEMBER(namcos12_state::s12_mcu_gun_h_r)
{ {
return ioport("LIGHT0_X")->read() << 2; return ioport("LIGHT0_X")->read();
} }
READ16_MEMBER(namcos12_state::s12_mcu_gun_v_r) READ16_MEMBER(namcos12_state::s12_mcu_gun_v_r)
{ {
return ioport("LIGHT0_Y")->read() << 2; return ioport("LIGHT0_Y")->read();
} }
static ADDRESS_MAP_START( golgo13_h8iomap, AS_IO, 16, namcos12_state ) static ADDRESS_MAP_START( golgo13_h8iomap, AS_IO, 16, namcos12_state )