140
static MC6845_ON_HSYNC_CHANGED(hsync_changed)
140
static WRITE_LINE_DEVICE_HANDLER(hsync_changed)
142
142
/* update any video up to the current scanline */
143
143
video_screen_update_now(device->machine->primary_screen);
146
static MC6845_ON_VSYNC_CHANGED(vsync_changed)
146
static WRITE_LINE_DEVICE_HANDLER(vsync_changed)
148
cputag_set_input_line(device->machine, "maincpu", 0, vsync ? ASSERT_LINE : CLEAR_LINE);
148
cputag_set_input_line(device->machine, "maincpu", 0, state ? ASSERT_LINE : CLEAR_LINE);
151
151
static const mc6845_interface mc6845_intf =
153
"screen", /* screen we are acting on */
154
8, /* number of pixels per video memory address */
155
begin_update, /* before pixel update callback */
156
update_row, /* row update callback */
157
0, /* after pixel update callback */
158
0, /* callback for display state changes */
159
hsync_changed, /* HSYNC callback */
160
vsync_changed /* VSYNC callback */
153
"screen", /* screen we are acting on */
154
8, /* number of pixels per video memory address */
155
begin_update, /* before pixel update callback */
156
update_row, /* row update callback */
157
NULL, /* after pixel update callback */
158
DEVCB_NULL, /* callback for display state changes */
159
DEVCB_NULL, /* callback for cursor state changes */
160
DEVCB_LINE(hsync_changed), /* HSYNC callback */
161
DEVCB_LINE(vsync_changed), /* VSYNC callback */
162
NULL /* update address callback */
346
348
static INPUT_PORTS_START( spielbud )
347
349
PORT_START("IN0") /* b800 (ppi8255) */
348
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Z) PORT_NAME("Discard 1 / Deal (BJ)")
349
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_X) PORT_NAME("Discard 2")
350
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_C) PORT_NAME("Discard 3 / Bet 1 / Split (BJ)")
351
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_V) PORT_NAME("Discard4 / Stand (BJ)")
352
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_B) PORT_NAME("Discard5 / Hit (BJ)")
353
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_CODE(KEYCODE_1) PORT_NAME("Start")
354
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_CODE(KEYCODE_N) PORT_NAME("Cancel / Select")
350
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_POKER_HOLD1 ) PORT_NAME("Discard 1 / Deal (BJ)")
351
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_POKER_HOLD2 ) PORT_NAME("Discard 2")
352
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_POKER_HOLD3 ) PORT_NAME("Discard 3 / Bet 1 / Split (BJ)")
353
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD4 ) PORT_NAME("Discard 4 / Stand (BJ)")
354
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_POKER_HOLD5 ) PORT_NAME("Discard 5 / Hit (BJ)")
355
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start")
356
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_POKER_CANCEL ) PORT_NAME("Cancel / Select")
355
357
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
357
359
PORT_START("IN1") /* b801 (ppi8255) */
358
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1) PORT_IMPULSE(2) /* Coin A */
359
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2) PORT_IMPULSE(2) /* Coin B */
360
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_0) PORT_NAME("Stats")
361
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_9) PORT_NAME("Settings")
360
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1) PORT_IMPULSE(2) /* Coin A */
361
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2) PORT_IMPULSE(2) /* Coin B */
362
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Stats")
363
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_SERVICE ) PORT_NAME("Settings")
362
364
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
363
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN3) PORT_IMPULSE(2) /* Coin C */
364
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN4) PORT_IMPULSE(2) /* Coin D */
365
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN3) PORT_IMPULSE(2) /* Coin C */
366
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN4) PORT_IMPULSE(2) /* Coin D */
365
367
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
367
369
PORT_START("IN2") /* b802 (ppi8255) */
370
372
PORT_START("IN3") /* bc00 (ppi8255) */
371
373
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
372
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_CODE(KEYCODE_A) PORT_NAME("Tief (Low)")
373
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_CODE(KEYCODE_S) PORT_NAME("Hoch (High)")
374
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_CODE(KEYCODE_3) PORT_NAME("Double-Up")
375
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_CODE(KEYCODE_4) PORT_NAME("Take Score")
376
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_CODE(KEYCODE_2) PORT_NAME("Bet 2")
377
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_W) PORT_NAME("Payout")
374
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_LOW ) PORT_NAME("Tief (Low)")
375
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH ) PORT_NAME("Hoch (High)")
376
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_D_UP ) PORT_NAME("Double-Up")
377
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE ) PORT_NAME("Take Score")
378
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_BET ) PORT_NAME("Bet 2")
379
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
378
380
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
380
382
PORT_START("IN4") /* bc01 (ppi8255) */