Previous 15994 Revisions Next

r1224 Sunday 4th November, 2007 at 21:16:22 UTC by Stefano Priore
[ARCADIA 2001] Input ports cleanup
[src/mess/drivers]arcadia.c
[src/mess/video]arcadia.c

src/mess/video/arcadia.c
r1223r1224
55
66#include "includes/arcadia.h"
77
8/* TODO: implement the RESET key on the front panel
9         uncrapify the color table code
10         find a dump of the charactyer ROM
11         convert the drawing code to tilemap
12
13Schematics, manuals and anything you can desire for at http://amigan.classicgaming.gamespy.com/
14
15*/
16
817/*
918  emulation of signetics 2637 video/audio device
1019
1120  seams to me like a special microcontroller
1221  mask programmed
1322  1k x 8 ram available; only first 0x300 bytes mapped to cpu
14 */
23*/
1524
1625/*
17260x18fe bit 4 set means sound off?
r1223r1224
534543    UINT8 data=0;
535544    switch (offset) {
536545    case 0xff: data=arcadia_video.charline|0xf0;break;
537    case 0x100: data=input_port_1_r(0);break;
538    case 0x101: data=input_port_2_r(0);break;
539    case 0x102: data=input_port_3_r(0);break;
540    case 0x103: data=input_port_4_r(0);break;
541    case 0x104: data=input_port_5_r(0);break;
542    case 0x105: data=input_port_6_r(0);break;
543    case 0x106: data=input_port_7_r(0);break;
544    case 0x107: data=input_port_8_r(0);break;
545    case 0x108: data=input_port_0_r(0);break;
546    case 0x100: data=readinputportbytag("controller1_col1");break;
547    case 0x101: data=readinputportbytag("controller1_col2");break;
548    case 0x102: data=readinputportbytag("controller1_col3");break;
549    case 0x103: data=readinputportbytag("controller1_extra");break;
550    case 0x104: data=readinputportbytag("controller2_col1");break;
551    case 0x105: data=readinputportbytag("controller2_col2");break;
552    case 0x106: data=readinputportbytag("controller2_col3");break;
553    case 0x107: data=readinputportbytag("controller2_extra");break;
554    case 0x108: data=readinputportbytag("panel");break;
546555#if 0
547556    case 0x1fe:
548   if (arcadia_video.ad_select) data=input_port_10_r(0)<<3;
549   else data=input_port_9_r(0)<<3;
557   if (arcadia_video.ad_select) data=readinputportbytag("controller1_joy_y")<<3;
558   else data=readinputportbytag("controller1_joy_x")<<3;
550559   break;
551560    case 0x1ff:
552   if (arcadia_video.ad_select) data=input_port_7_r(0)<<3;
553   else data=input_port_8_r(0)<<3;
561   if (arcadia_video.ad_select) data=readinputportbytag("controller2_joy_y")<<3;
562   else data=readinputportbytag("controller2_joy_x")<<3;
554563   break;
555564#else
556565    case 0x1fe:
557566   data = 0x80;
558567   if (arcadia_video.ad_select) {
559       if (input_port_9_r(0)&0x10) data=0;
560       if (input_port_9_r(0)&0x20) data=0xff;
568       if (readinputportbytag("joysticks")&0x10) data=0;
569       if (readinputportbytag("joysticks")&0x20) data=0xff;
561570   } else {
562       if (input_port_9_r(0)&0x40) data=0xff;
563       if (input_port_9_r(0)&0x80) data=0;
571       if (readinputportbytag("joysticks")&0x40) data=0xff;
572       if (readinputportbytag("joysticks")&0x80) data=0;
564573   }
565574   break;
566575    case 0x1ff:
567576   data = 0x6f; // 0x7f too big for alien invaders (movs right)
568577   if (arcadia_video.ad_select) {
569       if (input_port_9_r(0)&0x1) data=0;
570       if (input_port_9_r(0)&0x2) data=0xff;
578       if (readinputportbytag("joysticks")&0x1) data=0;
579       if (readinputportbytag("joysticks")&0x2) data=0xff;
571580   } else {
572       if (input_port_9_r(0)&0x4) data=0xff;
573       if (input_port_9_r(0)&0x8) data=0;
581       if (readinputportbytag("joysticks")&0x4) data=0xff;
582       if (readinputportbytag("joysticks")&0x8) data=0;
574583   }
575584   break;
576585#endif
src/mess/drivers/arcadia.c
r1223r1224
44 Paul Robson's Emulator at www.classicgaming.com/studio2 made it possible
55******************************************************************************/
66
7/*
8Schematics, manuals and anything you can desire for at http://amigan.classicgaming.gamespy.com/
9
10TODO: Define a proper color table - see machine/arcadia.c for details
11*/
12
713#include <assert.h>
814#include "driver.h"
915#include "image.h"
r1223r1224
2430   AM_RANGE( S2650_SENSE_PORT,S2650_SENSE_PORT) AM_READ( arcadia_vsync_r)
2531ADDRESS_MAP_END
2632
33/* The Emerson Arcadia 2001 controllers have 2 fire buttons on the side,
34   but actually they are wired to keypad button #2. The following definitions
35   are meant to document this fact. The keypad has the following layout:
36
37     1  2  3
38     4  5  6
39     7  8  9
40    Cl  0 En                                                                  */
41
2742INPUT_PORTS_START( arcadia )
28   PORT_START
29   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Start") PORT_CODE(KEYCODE_F1)
30   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Option") PORT_CODE(KEYCODE_F2)
31   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(DEF_STR(Difficulty)) PORT_CODE(KEYCODE_F5)
32   PORT_START
33   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
34   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 1") PORT_CODE(KEYCODE_1)
35   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 4") PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_Q)
36   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 7") PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_A)
37   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left Clear") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_Z)
38   PORT_START
39   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
40   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 2/Button") PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_LCONTROL)
41   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 5") PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_W)
42   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 8") PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_S)
43   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_X)
44   PORT_START
45   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
46   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 3") PORT_CODE(KEYCODE_3)
47   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 6") PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_E)
48   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 9") PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_D)
49   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left Enter") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_C)
50   PORT_START
51   PORT_BIT ( 0xff, 0xf0,    IPT_UNUSED ) // used in palladium
52   PORT_START
53   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
54   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 1") PORT_CODE(KEYCODE_1_PAD)
55   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 4") PORT_CODE(KEYCODE_4_PAD)
56   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 7") PORT_CODE(KEYCODE_7_PAD)
57   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right Clear") PORT_CODE(KEYCODE_DEL_PAD)
58   PORT_START
59   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
60   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 2/Button") PORT_CODE(KEYCODE_2_PAD) PORT_CODE(KEYCODE_LALT)
61   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 5") PORT_CODE(KEYCODE_5_PAD)
62   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 8") PORT_CODE(KEYCODE_8_PAD)
63   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 0") PORT_CODE(KEYCODE_0_PAD)
64   PORT_START
65   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
66   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 3") PORT_CODE(KEYCODE_3_PAD)
67   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 6") PORT_CODE(KEYCODE_6_PAD)
68   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 9") PORT_CODE(KEYCODE_9_PAD)
69   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right ENTER") PORT_CODE(KEYCODE_ENTER_PAD)
70   PORT_START
71   PORT_BIT ( 0xff, 0xf0,    IPT_UNUSED ) // used in palladium
43   PORT_START_TAG("panel")
44   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Start")           PORT_CODE(KEYCODE_S)
45   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Option")          PORT_CODE(KEYCODE_O)
46   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Select")          PORT_CODE(KEYCODE_E)
47//   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Reset")           PORT_CODE(KEYCODE_R)         Not implemented
48   PORT_START_TAG("controller1_col1")
49   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
50   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Keypad 1")     PORT_CODE(KEYCODE_1)         PORT_PLAYER(1)
51   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("P1 Keypad 4")     PORT_CODE(KEYCODE_4)         PORT_PLAYER(1)
52   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_NAME("P1 Keypad 7")     PORT_CODE(KEYCODE_7)         PORT_PLAYER(1)
53   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON13) PORT_NAME("P1 Keypad Clear") PORT_CODE(KEYCODE_DEL)       PORT_PLAYER(1)
54   PORT_START_TAG("controller1_col2")
55   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
56   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 )                                                           PORT_PLAYER(1)
57   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 )                                                           PORT_PLAYER(1)
58   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Keypad 2")     PORT_CODE(KEYCODE_2)         PORT_PLAYER(1)
59   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("P1 Keypad 5")     PORT_CODE(KEYCODE_5)         PORT_PLAYER(1)
60   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("P1 Keypad 8")     PORT_CODE(KEYCODE_8)         PORT_PLAYER(1)
61   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON12) PORT_NAME("P1 Keypad 0")     PORT_CODE(KEYCODE_0)         PORT_PLAYER(1)
62   PORT_START_TAG("controller1_col3")
63   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
64   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("P1 Keypad 3")     PORT_CODE(KEYCODE_3)         PORT_PLAYER(1)
65   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_NAME("P1 Keypad 6")     PORT_CODE(KEYCODE_6)         PORT_PLAYER(1)
66   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON11) PORT_NAME("P1 Keypad 9")     PORT_CODE(KEYCODE_9)         PORT_PLAYER(1)
67   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON14) PORT_NAME("P1 Keypad Enter") PORT_CODE(KEYCODE_ENTER)     PORT_PLAYER(1)
68   PORT_START_TAG("controller1_extra")
69   PORT_BIT(0xff, 0xf0, IPT_UNUSED) // used in palladium
70   PORT_START_TAG("controller2_col1")
71   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
72   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P2 Keypad 1")     PORT_CODE(KEYCODE_1_PAD)     PORT_PLAYER(2)
73   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("P2 Keypad 4")     PORT_CODE(KEYCODE_4_PAD)     PORT_PLAYER(2)
74   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_NAME("P2 Keypad 7")     PORT_CODE(KEYCODE_7_PAD)     PORT_PLAYER(2)
75   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON13) PORT_NAME("P2 Keypad Clear") PORT_CODE(KEYCODE_DEL_PAD)   PORT_PLAYER(2)
76   PORT_START_TAG("controller2_col2")
77   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
78   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 )                                                           PORT_PLAYER(2)
79   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 )                                                           PORT_PLAYER(2)
80   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P2 Keypad 2")     PORT_CODE(KEYCODE_2_PAD)     PORT_PLAYER(2)
81   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("P2 Keypad 5")     PORT_CODE(KEYCODE_5_PAD)     PORT_PLAYER(2)
82   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("P2 Keypad 8")     PORT_CODE(KEYCODE_8_PAD)     PORT_PLAYER(2)
83   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON12) PORT_NAME("P2 Keypad 0")     PORT_CODE(KEYCODE_0_PAD)     PORT_PLAYER(2)
84   PORT_START_TAG("controller2_col3")
85   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
86   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("P2 Keypad 3")     PORT_CODE(KEYCODE_3_PAD)     PORT_PLAYER(2)
87   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_NAME("P2 Keypad 6")     PORT_CODE(KEYCODE_6_PAD)     PORT_PLAYER(2)
88   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON11) PORT_NAME("P2 Keypad 9")     PORT_CODE(KEYCODE_9_PAD)     PORT_PLAYER(2)
89   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON14) PORT_NAME("P2 Keypad Enter") PORT_CODE(KEYCODE_ENTER_PAD) PORT_PLAYER(2)
90   PORT_START_TAG("controller2_extra")
91   PORT_BIT(0xff, 0xf0, IPT_UNUSED) // used in palladium
92
93/* FIXME: the joystick are analog - the actual definition is merely an hack */
94
7295#if 0
7396    // shit, auto centering too slow, so only using 5 bits, and scaling at videoside
74    PORT_START
75PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) PORT_SENSITIVITY(1) PORT_KEYDELTA(2000) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_LEFT) PORT_CODE_INC(KEYCODE_RIGHT) PORT_CODE_DEC(JOYCODE_1_LEFT) PORT_CODE_INC(JOYCODE_1_RIGHT) PORT_RESET
76    PORT_START
77PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) PORT_SENSITIVITY(1) PORT_KEYDELTA(2000) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_UP) PORT_CODE_INC(KEYCODE_DOWN) PORT_CODE_DEC(JOYCODE_1_UP) PORT_CODE_INC(JOYCODE_1_DOWN) PORT_RESET
78    PORT_START
79PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_DEL) PORT_CODE_INC(KEYCODE_PGDN) PORT_CODE_DEC(JOYCODE_2_LEFT) PORT_CODE_INC(JOYCODE_2_RIGHT) PORT_PLAYER(2) PORT_RESET
80    PORT_START
81PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_HOME) PORT_CODE_INC(KEYCODE_END) PORT_CODE_DEC(JOYCODE_2_UP) PORT_CODE_INC(JOYCODE_2_DOWN) PORT_PLAYER(2) PORT_RESET
97    PORT_START_TAG("controller1_joy_x")
98    PORT_BIT(0x1fe,0x10,IPT_AD_STICK_X)
99    PORT_SENSITIVITY(1)
100    PORT_KEYDELTA(2000)
101    PORT_MINMAX(0,0x1f)
102    PORT_CODE_DEC(KEYCODE_LEFT)
103    PORT_CODE_INC(KEYCODE_RIGHT)
104    PORT_CODE_DEC(JOYCODE_1_LEFT)
105    PORT_CODE_INC(JOYCODE_1_RIGHT)
106    PORT_PLAYER(1)
107    PORT_RESET
108
109    PORT_START_TAG("controller1_joy_y")
110    PORT_BIT(0x1fe,0x10,IPT_AD_STICK_Y)
111    PORT_SENSITIVITY(1)
112    PORT_KEYDELTA(2000)
113    PORT_MINMAX(0,0x1f)
114    PORT_CODE_DEC(KEYCODE_UP)
115    PORT_CODE_INC(KEYCODE_DOWN)
116    PORT_CODE_DEC(JOYCODE_1_UP)
117    PORT_CODE_INC(JOYCODE_1_DOWN)
118    PORT_PLAYER(1)
119    PORT_RESET
120
121    PORT_START_TAG("controller2_joy_x")
122    PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X)
123    PORT_SENSITIVITY(100)
124    PORT_KEYDELTA(10)
125    PORT_MINMAX(0,0x1f)
126    PORT_CODE_DEC(KEYCODE_DEL)
127    PORT_CODE_INC(KEYCODE_PGDN)
128    PORT_CODE_DEC(JOYCODE_2_LEFT)
129    PORT_CODE_INC(JOYCODE_2_RIGHT)
130    PORT_PLAYER(2)
131    PORT_RESET
132
133    PORT_START_TAG("controller2_joy_y")
134    PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y)
135    PORT_SENSITIVITY(100)
136    PORT_KEYDELTA(10)
137    PORT_MINMAX(0,0x1f)
138    PORT_CODE_DEC(KEYCODE_HOME)
139    PORT_CODE_INC(KEYCODE_END)
140    PORT_CODE_DEC(JOYCODE_2_UP)
141    PORT_CODE_INC(JOYCODE_2_DOWN)
142    PORT_PLAYER(2)
143    PORT_RESET
82144#else
83   PORT_START
84   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/left") PORT_CODE(KEYCODE_LEFT)
85   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/right") PORT_CODE(KEYCODE_RIGHT)
86   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/down") PORT_CODE(KEYCODE_DOWN)
87   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/up") PORT_CODE(KEYCODE_UP)
88   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/left") PORT_CODE(KEYCODE_DEL)
89   PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/right") PORT_CODE(KEYCODE_PGDN)
90   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/down") PORT_CODE(KEYCODE_END)
91   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/up") PORT_CODE(KEYCODE_HOME)
145   PORT_START_TAG("joysticks")
146   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT)  PORT_PLAYER(1) PORT_8WAY
147   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1) PORT_8WAY
148   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN)  PORT_PLAYER(1) PORT_8WAY
149   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP)    PORT_PLAYER(1) PORT_8WAY
150   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT)  PORT_PLAYER(2) PORT_8WAY
151   PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(2) PORT_8WAY
152   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN)  PORT_PLAYER(2) PORT_8WAY
153   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP)    PORT_PLAYER(2) PORT_8WAY
92154#endif
93155INPUT_PORTS_END
94156
157/* The Palladium Video-Computer-Game controllers have no fire buttons on their side
158   but have a 16 keys unlabeled keypad. The keys are fully independent and layed out
159   according to this weird scheme, which keeps backward compatibility to Arcadia 2001's
160   electrical wiring.
161
162        2
163    13 14 15
164     1 16  3
165     4  5  6
166     7  8  9
167    10 11 12                                                                           */
168
95169INPUT_PORTS_START( vcg )
96   PORT_START
97   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Start") PORT_CODE(KEYCODE_F1)
98   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Selector A") PORT_CODE(KEYCODE_F2)
99   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Selector B") PORT_CODE(KEYCODE_F5)
100   PORT_START
101PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED ) // some bits must be high
102   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 1") PORT_CODE(KEYCODE_1)
103   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 4") PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_Q)
104   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 7") PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_A)
105   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left Clear") PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_Z)
106   PORT_START
107   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
108   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 2/Button") PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_LCONTROL)
109   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 5") PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_W)
110   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 8") PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_S)
111   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 0") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_X)
112   PORT_START
113   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
114   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 3") PORT_CODE(KEYCODE_3)
115   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 6") PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_E)
116   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left 9") PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_D)
117   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left Enter") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_C)
118   PORT_START
119   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
120   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left x1") PORT_CODE(KEYCODE_R)
121   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left x2") PORT_CODE(KEYCODE_F)
122   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left x3") PORT_CODE(KEYCODE_V)
123   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/Left x4") PORT_CODE(KEYCODE_G)
124   PORT_START
125   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
126   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 1") PORT_CODE(KEYCODE_1_PAD)
127   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 4") PORT_CODE(KEYCODE_4_PAD)
128   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 7") PORT_CODE(KEYCODE_7_PAD)
129   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right Clear") PORT_CODE(KEYCODE_DEL_PAD)
130   PORT_START
131   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
132   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 2/Button") PORT_CODE(KEYCODE_2_PAD) PORT_CODE(KEYCODE_LALT)
133   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 5") PORT_CODE(KEYCODE_5_PAD)
134   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 8") PORT_CODE(KEYCODE_8_PAD)
135   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 0") PORT_CODE(KEYCODE_0_PAD)
136   PORT_START
137   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
138   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 3") PORT_CODE(KEYCODE_3_PAD)
139   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 6") PORT_CODE(KEYCODE_6_PAD)
140   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right 9") PORT_CODE(KEYCODE_9_PAD)
141   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right ENTER") PORT_CODE(KEYCODE_ENTER_PAD)
142   PORT_START
143   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
144   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right x1") PORT_CODE(KEYCODE_ASTERISK)
145   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right x2") PORT_CODE(KEYCODE_SLASH_PAD)
146   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right x3") PORT_CODE(KEYCODE_MINUS_PAD)
147   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/Right x4") PORT_CODE(KEYCODE_PLUS_PAD)
170   PORT_START_TAG("panel")
171   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Start")        PORT_CODE(KEYCODE_S)
172   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Selector A")   PORT_CODE(KEYCODE_A)
173   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Selector B")   PORT_CODE(KEYCODE_B)
174//   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_OTHER)    PORT_NAME("Reset")        PORT_CODE(KEYCODE_R)         Not implemented
175   PORT_START_TAG("controller1_col1")
176   PORT_BIT(0xf0, 0xf0, IPT_UNUSED) // some bits must be high
177   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Keypad 1")  PORT_CODE(KEYCODE_1)         PORT_PLAYER(1)
178   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P1 Keypad 4")  PORT_CODE(KEYCODE_4)         PORT_PLAYER(1)
179   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("P1 Keypad 7")  PORT_CODE(KEYCODE_7)         PORT_PLAYER(1)
180   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("P1 Keypad 10") PORT_CODE(KEYCODE_DEL)       PORT_PLAYER(1)
181   PORT_START_TAG("controller1_col2")
182   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
183   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("P1 Keypad 2")  PORT_CODE(KEYCODE_2)         PORT_PLAYER(1)
184   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("P1 Keypad 5")  PORT_CODE(KEYCODE_5)         PORT_PLAYER(1)
185   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_NAME("P1 Keypad 8")  PORT_CODE(KEYCODE_8)         PORT_PLAYER(1)
186   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON11) PORT_NAME("P1 Keypad 11") PORT_CODE(KEYCODE_0)         PORT_PLAYER(1)
187   PORT_START_TAG("controller1_col3")
188   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
189   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Keypad 3")  PORT_CODE(KEYCODE_3)         PORT_PLAYER(1)
190   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("P1 Keypad 6")  PORT_CODE(KEYCODE_6)         PORT_PLAYER(1)
191   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_NAME("P1 Keypad 9")  PORT_CODE(KEYCODE_9)         PORT_PLAYER(1)
192   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON12) PORT_NAME("P1 Keypad 12") PORT_CODE(KEYCODE_ENTER)     PORT_PLAYER(1)
193   PORT_START_TAG("controller1_extra")
194   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
195   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON13) PORT_NAME("P1 Keypad 13") PORT_CODE(KEYCODE_U)         PORT_PLAYER(1)
196   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON14) PORT_NAME("P1 Keypad 14") PORT_CODE(KEYCODE_I)         PORT_PLAYER(1)
197   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON15) PORT_NAME("P1 Keypad 15") PORT_CODE(KEYCODE_O)         PORT_PLAYER(1)
198   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON16) PORT_NAME("P1 Keypad 16") PORT_CODE(KEYCODE_K)         PORT_PLAYER(1)
199   PORT_START_TAG("controller2_col1")
200   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
201   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P2 Keypad 1")  PORT_CODE(KEYCODE_1_PAD)     PORT_PLAYER(2)
202   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("P2 Keypad 4")  PORT_CODE(KEYCODE_4_PAD)     PORT_PLAYER(2)
203   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("P2 Keypad 7")  PORT_CODE(KEYCODE_7_PAD)     PORT_PLAYER(2)
204   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("P2 Keypad 10") PORT_CODE(KEYCODE_DEL_PAD)   PORT_PLAYER(2)
205   PORT_START_TAG("controller2_col2")
206   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
207   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("P2 Keypad 2")  PORT_CODE(KEYCODE_2_PAD)     PORT_PLAYER(2)
208   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("P2 Keypad 5")  PORT_CODE(KEYCODE_5_PAD)     PORT_PLAYER(2)
209   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON8 ) PORT_NAME("P2 Keypad 8")  PORT_CODE(KEYCODE_8_PAD)     PORT_PLAYER(2)
210   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON11) PORT_NAME("P2 Keypad 11") PORT_CODE(KEYCODE_0_PAD)     PORT_PLAYER(2)
211   PORT_START_TAG("controller2_col3")
212   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
213   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P2 Keypad 3")  PORT_CODE(KEYCODE_3_PAD)     PORT_PLAYER(2)
214   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("P2 Keypad 6")  PORT_CODE(KEYCODE_6_PAD)     PORT_PLAYER(2)
215   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON9 ) PORT_NAME("P2 Keypad 9")  PORT_CODE(KEYCODE_9_PAD)     PORT_PLAYER(2)
216   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON12) PORT_NAME("P2 Keypad 12") PORT_CODE(KEYCODE_ENTER_PAD) PORT_PLAYER(2)
217   PORT_START_TAG("controller2_extra")
218   PORT_BIT(0xf0, 0xf0, IPT_UNUSED)
219   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON13) PORT_NAME("P2 Keypad 13") PORT_CODE(KEYCODE_SLASH_PAD) PORT_PLAYER(2)
220   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON14) PORT_NAME("P2 Keypad 14") PORT_CODE(KEYCODE_ASTERISK)  PORT_PLAYER(2)
221   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_BUTTON15) PORT_NAME("P2 Keypad 15") PORT_CODE(KEYCODE_MINUS_PAD) PORT_PLAYER(2)
222   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_BUTTON16) PORT_NAME("P2 Keypad 16") PORT_CODE(KEYCODE_PLUS_PAD)  PORT_PLAYER(2)
223
224/* FIXME: the joystick are analog - the actual definition is merely an hack */
225
148226#if 0
149227    // shit, auto centering too slow, so only using 5 bits, and scaling at videoside
150    PORT_START
151PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) PORT_SENSITIVITY(1) PORT_KEYDELTA(2000) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_LEFT) PORT_CODE_INC(KEYCODE_RIGHT) PORT_CODE_DEC(JOYCODE_1_LEFT) PORT_CODE_INC(JOYCODE_1_RIGHT) PORT_RESET
152    PORT_START
153PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) PORT_SENSITIVITY(1) PORT_KEYDELTA(2000) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_UP) PORT_CODE_INC(KEYCODE_DOWN) PORT_CODE_DEC(JOYCODE_1_UP) PORT_CODE_INC(JOYCODE_1_DOWN) PORT_RESET
154    PORT_START
155PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_DEL) PORT_CODE_INC(KEYCODE_PGDN) PORT_CODE_DEC(JOYCODE_2_LEFT) PORT_CODE_INC(JOYCODE_2_RIGHT) PORT_PLAYER(2) PORT_RESET
156    PORT_START
157PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_MINMAX(0,0x1f) PORT_CODE_DEC(KEYCODE_HOME) PORT_CODE_INC(KEYCODE_END) PORT_CODE_DEC(JOYCODE_2_UP) PORT_CODE_INC(JOYCODE_2_DOWN) PORT_PLAYER(2) PORT_RESET
228    PORT_START_TAG("controller1_joy_x")
229    PORT_BIT(0x1fe,0x10,IPT_AD_STICK_X)
230    PORT_SENSITIVITY(1)
231    PORT_KEYDELTA(2000)
232    PORT_MINMAX(0,0x1f)
233    PORT_CODE_DEC(KEYCODE_LEFT)
234    PORT_CODE_INC(KEYCODE_RIGHT)
235    PORT_CODE_DEC(JOYCODE_1_LEFT)
236    PORT_CODE_INC(JOYCODE_1_RIGHT)
237    PORT_PLAYER(1)
238    PORT_RESET
239
240    PORT_START_TAG("controller1_joy_y")
241    PORT_BIT(0x1fe,0x10,IPT_AD_STICK_Y)
242    PORT_SENSITIVITY(1)
243    PORT_KEYDELTA(2000)
244    PORT_MINMAX(0,0x1f)
245    PORT_CODE_DEC(KEYCODE_UP)
246    PORT_CODE_INC(KEYCODE_DOWN)
247    PORT_CODE_DEC(JOYCODE_1_UP)
248    PORT_CODE_INC(JOYCODE_1_DOWN)
249    PORT_PLAYER(1)
250    PORT_RESET
251
252    PORT_START_TAG("controller2_joy_x")
253    PORT_BIT(0x1ff,0x10,IPT_AD_STICK_X)
254    PORT_SENSITIVITY(100)
255    PORT_KEYDELTA(10)
256    PORT_MINMAX(0,0x1f)
257    PORT_CODE_DEC(KEYCODE_DEL)
258    PORT_CODE_INC(KEYCODE_PGDN)
259    PORT_CODE_DEC(JOYCODE_2_LEFT)
260    PORT_CODE_INC(JOYCODE_2_RIGHT)
261    PORT_PLAYER(2)
262    PORT_RESET
263
264    PORT_START_TAG("controller2_joy_y")
265    PORT_BIT(0x1ff,0x10,IPT_AD_STICK_Y)
266    PORT_SENSITIVITY(100)
267    PORT_KEYDELTA(10)
268    PORT_MINMAX(0,0x1f)
269    PORT_CODE_DEC(KEYCODE_HOME)
270    PORT_CODE_INC(KEYCODE_END)
271    PORT_CODE_DEC(JOYCODE_2_UP)
272    PORT_CODE_INC(JOYCODE_2_DOWN)
273    PORT_PLAYER(2)
274    PORT_RESET
158275#else
159   PORT_START
160   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/left") PORT_CODE(KEYCODE_LEFT)
161   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/right") PORT_CODE(KEYCODE_RIGHT)
162   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/down") PORT_CODE(KEYCODE_DOWN)
163   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 1/up") PORT_CODE(KEYCODE_UP)
164   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/left") PORT_CODE(KEYCODE_DEL)
165   PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/right") PORT_CODE(KEYCODE_PGDN)
166   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/down") PORT_CODE(KEYCODE_END)
167   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Player 2/up") PORT_CODE(KEYCODE_HOME)
276   PORT_START_TAG("joysticks")
277   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT)  PORT_PLAYER(1) PORT_8WAY
278   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1) PORT_8WAY
279   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN)  PORT_PLAYER(1) PORT_8WAY
280   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP)    PORT_PLAYER(1) PORT_8WAY
281   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT)  PORT_PLAYER(2) PORT_8WAY
282   PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(2) PORT_8WAY
283   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN)  PORT_PLAYER(2) PORT_8WAY
284   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP)    PORT_PLAYER(2) PORT_8WAY
168285#endif
169286INPUT_PORTS_END
170287
r1223r1224
191308};
192309
193310static GFXDECODE_START( arcadia_gfxdecodeinfo )
194   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, arcadia_charlayout, 0, 2 )
311   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, arcadia_charlayout, 0, 128 )
195312GFXDECODE_END
196313
197314static unsigned char arcadia_palette[] =
r1223r1224
206323   0, 0, 0         // black
207324};
208325
209static unsigned short arcadia_colortable[1][2] = {
326static unsigned short arcadia_colortable[2][2] = {
210327   { 0, 1 },
328   { 1, 0 }
211329};
212330
213331static PALETTE_INIT( arcadia )
r1223r1224
232350   MDRV_SCREEN_SIZE(128+2*XPOS, 262)
233351   MDRV_SCREEN_VISIBLE_AREA(0, 2*XPOS+128-1, 0, 262-1)
234352   MDRV_GFXDECODE( arcadia_gfxdecodeinfo )
235   MDRV_PALETTE_LENGTH(sizeof (arcadia_palette) / sizeof (arcadia_palette[0]))
353   MDRV_PALETTE_LENGTH(sizeof (arcadia_palette) / sizeof (arcadia_palette[0]) / 3)
236354   MDRV_COLORTABLE_LENGTH(sizeof (arcadia_colortable) / sizeof(arcadia_colortable[0][0]))
237355   MDRV_PALETTE_INIT( arcadia )
238356
r1223r1224
492610
493611// different cartridge connector (same size as mpt03, but different pinout!)
494612// 16 keys instead of 12
495CONS(198?, vcg,      arcadia,   0,      arcadia,  vcg,      arcadia,   arcadia,   "Palladium",      "VIDEO - COMPUTER - GAME", GAME_IMPERFECT_SOUND )
613CONS(198?, vcg,      arcadia,   0,      arcadia,  vcg,      arcadia,   arcadia,   "Palladium",      "Video-Computer-Game", GAME_IMPERFECT_SOUND )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team