Final Burn Neo > FBN Development

V-Liner

(1/1)

KingHanco:
Well.

I try the 2 V-Liner games drivers that I compile on FBA.

Both have an error on the switches.

Mosty it looking for the switches anyway on FBA.

It won't work on FBA correcty that most of us beleave on the switches.

It the same error that IQ show on his website. :)

neo04:
this is a mame driver by HalRIN (beta)


--- Code: ---
INPUT_PORTS_START( vliner )
PORT_START_TAG("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) // this should be button4 for better inputs

PORT_START_TAG("IN1")

PORT_START_TAG("IN2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* memory card inserted */
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* memory card write protection */
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )

NGIN3

PORT_START_TAG("IN4")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )

PORT_START_TAG("IN5")

NGIN6

INPUT_PORTS_END


static data16_t neogeo_sram16_2[0x2000];

READ16_HANDLER( neogeo_sram16_2_r )
{
return neogeo_sram16_2[offset];
}

WRITE16_HANDLER( neogeo_sram16_2_w )
{
COMBINE_DATA(&neogeo_sram16_2[offset]);
}

READ16_HANDLER( vliner_2c0000_r )
{
return 0x0003;
}

READ16_HANDLER( vliner_coins_r )
{
data16_t res;
res = readinputport(4);

if( !Machine->sample_rate ){
res |= 0x0100;
}

return res;
}

READ16_HANDLER( vliner_timer16_r )
{
data16_t res;
int coinflip = pd4990a_testbit_r(0);
int databit = pd4990a_databit_r(0);

res = 0x3f ^ (coinflip

James33:
Some of that code does not work for me in Mame and I have it working without part of it anyway.

Navigation

[0] Message Index

Go to full version