Previous 15994 Revisions Next

r4514 Saturday 18th April, 2009 at 20:06:07 UTC by Fabio Priuli
[SPECTRUM] Removed Spectrum+ keys from earlier models (some clone may still need them, but I'll verify this later with keyboard pictures).
Largely improved natural keyboard support.
Moved selection of Joystick interfaces to use PORT_CATEGORY.
[src/mess/drivers]pentagon.c scorpion.c spec128.c specpls3.c spectrum.c timex.c
[src/mess/includes]spectrum.h

src/mess/includes/spectrum.h
r4513r4514
7272extern unsigned char *spectrum_screen_location;
7373
7474INPUT_PORTS_EXTERN( spectrum );
75INPUT_PORTS_EXTERN( spec_plus );
76
7577MACHINE_DRIVER_EXTERN( spectrum );
7678
7779extern READ8_HANDLER(spectrum_port_1f_r);
src/mess/drivers/pentagon.c
r4513r4514
141141SYSTEM_CONFIG_END
142142
143143/*    YEAR  NAME      PARENT    COMPAT  MACHINE     INPUT       INIT    CONFIG      COMPANY     FULLNAME */
144COMP( ????, pentagon, spec128,   0,      pentagon,   spectrum,   0,      pentagon,   "???",      "Pentagon", GAME_NOT_WORKING)
144COMP( ????, pentagon, spec128,   0,      pentagon,   spec_plus,   0,      pentagon,   "???",      "Pentagon", GAME_NOT_WORKING)
src/mess/drivers/scorpion.c
r4513r4514
350350SYSTEM_CONFIG_END
351351
352352/*    YEAR  NAME      PARENT    COMPAT  MACHINE     INPUT       INIT    CONFIG      COMPANY     FULLNAME */
353COMP( ????, scorpion, spec128,    0,      scorpion,   spectrum,   0,      scorpion,   "Zonov and Co.",      "Zs Scorpion 256", GAME_NOT_WORKING )
353COMP( ????, scorpion, spec128,    0,      scorpion,   spec_plus,   0,      scorpion,   "Zonov and Co.",      "Zs Scorpion 256", GAME_NOT_WORKING )
src/mess/drivers/specpls3.c
r4513r4514
467467SYSTEM_CONFIG_END
468468
469469
470/*    YEAR  NAME      PARENT    COMPAT  MACHINE     INPUT       INIT    CONFIG      COMPANY     FULLNAME */
471COMP( 1987, specpl2a, spec128,  0,      spectrum_plus3,spectrum,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +2a" , 0 )
472COMP( 1987, specpls3, spec128,  0,      spectrum_plus3,spectrum,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3" , 0 )
473COMP( 2000, specpl3e, spec128,  0,      spectrum_plus3,spectrum,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3e" , GAME_COMPUTER_MODIFIED )
474COMP( 2002, sp3e8bit, spec128,  0,      spectrum_plus3,spectrum,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3e 8bit IDE" , GAME_COMPUTER_MODIFIED )
475COMP( 2002, sp3eata,  spec128,  0,      spectrum_plus3,spectrum,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3e 8bit ZXATASP" , GAME_COMPUTER_MODIFIED )
476COMP( 2002, sp3ezcf,  spec128,  0,      spectrum_plus3,spectrum,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3e 8bit ZXCF" , GAME_COMPUTER_MODIFIED )
470/*    YEAR  NAME      PARENT    COMPAT  MACHINE         INPUT       INIT    CONFIG      COMPANY     FULLNAME */
471COMP( 1987, specpl2a, spec128,  0,      spectrum_plus3, spec_plus,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +2a" , 0 )
472COMP( 1987, specpls3, spec128,  0,      spectrum_plus3, spec_plus,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3" , 0 )
473COMP( 2000, specpl3e, spec128,  0,      spectrum_plus3, spec_plus,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3e" , GAME_COMPUTER_MODIFIED )
474COMP( 2002, sp3e8bit, spec128,  0,      spectrum_plus3, spec_plus,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3e 8bit IDE" , GAME_COMPUTER_MODIFIED )
475COMP( 2002, sp3eata,  spec128,  0,      spectrum_plus3, spec_plus,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3e 8bit ZXATASP" , GAME_COMPUTER_MODIFIED )
476COMP( 2002, sp3ezcf,  spec128,  0,      spectrum_plus3, spec_plus,   0,      specpls3,   "Amstrad plc",          "ZX Spectrum +3e 8bit ZXCF" , GAME_COMPUTER_MODIFIED )
src/mess/drivers/spectrum.c
r4513r4514
208208/* DJR: Spectrum+ keys added */
209209READ8_HANDLER(spectrum_port_fe_r)
210210{
211   int lines = offset>>8;
212   int data = 0xff;
211   int lines = offset >> 8;
212   int data = 0xff;
213213
214   int cs_extra1 = input_port_read(space->machine, "PLUS0")  & 0x1f;
215   int cs_extra2 = input_port_read(space->machine, "PLUS1")  & 0x1f;
216   int cs_extra3 = input_port_read(space->machine, "PLUS2") & 0x1f;
217   int ss_extra1 = input_port_read(space->machine, "PLUS3") & 0x1f;
218   int ss_extra2 = input_port_read(space->machine, "PLUS4") & 0x1f;
214   int cs_extra1 = input_port_read_safe(space->machine, "PLUS0", 0xff) & 0x1f;
215   int cs_extra2 = input_port_read_safe(space->machine, "PLUS1", 0xff) & 0x1f;
216   int cs_extra3 = input_port_read_safe(space->machine, "PLUS2", 0xff) & 0x1f;
217   int ss_extra1 = input_port_read_safe(space->machine, "PLUS3", 0xff) & 0x1f;
218   int ss_extra2 = input_port_read_safe(space->machine, "PLUS4", 0xff) & 0x1f;
219219
220   /* Caps - V */
221   if ((lines & 1)==0)
222   {
220   /* Caps - V */
221   if ((lines & 1) == 0)
222   {
223223      data &= input_port_read(space->machine, "LINE0");
224224      /* CAPS for extra keys */
225225      if (cs_extra1 != 0x1f || cs_extra2 != 0x1f || cs_extra3 != 0x1f)
226226         data &= ~0x01;
227   }
227   }
228228
229   /* A - G */
230   if ((lines & 2)==0)
229   /* A - G */
230   if ((lines & 2) == 0)
231231      data &= input_port_read(space->machine, "LINE1");
232232
233   /* Q - T */
234   if ((lines & 4)==0)
233   /* Q - T */
234   if ((lines & 4) == 0)
235235      data &= input_port_read(space->machine, "LINE2");
236236
237   /* 1 - 5 */
238   if ((lines & 8)==0)
237   /* 1 - 5 */
238   if ((lines & 8) == 0)
239239      data &= input_port_read(space->machine, "LINE3") & cs_extra1;
240240
241   /* 6 - 0 */
242   if ((lines & 16)==0)
241   /* 6 - 0 */
242   if ((lines & 16) == 0)
243243      data &= input_port_read(space->machine, "LINE4") & cs_extra2;
244244
245   /* Y - P */
246   if ((lines & 32)==0)
245   /* Y - P */
246   if ((lines & 32) == 0)
247247      data &= input_port_read(space->machine, "LINE5") & ss_extra1;
248248
249   /* H - Enter */
250   if ((lines & 64)==0)
249   /* H - Enter */
250   if ((lines & 64) == 0)
251251      data &= input_port_read(space->machine, "LINE6");
252252
253   /* B - Space */
254   if ((lines & 128)==0)
253      /* B - Space */
254   if ((lines & 128) == 0)
255255   {
256256      data &= input_port_read(space->machine, "LINE7") & cs_extra3 & ss_extra2;
257257      /* SYMBOL SHIFT for extra keys */
r4513r4514
268268   }
269269
270270   /* Issue 2 Spectrums default to having bits 5, 6 & 7 set.
271    Issue 3 Spectrums default to having bits 5 & 7 set and bit 6 reset. */
271   Issue 3 Spectrums default to having bits 5 & 7 set and bit 6 reset. */
272272   if (input_port_read(space->machine, "CONFIG") & 0x80)
273273      data ^= (0x40);
274
274275   return data;
275276}
276277
r4513r4514
309310
310311/****************************************************************************************************/
311312
312/* Added natural keyboard support. The commented out PORT_CHAR are not currently reachable because MESS does not allow to differentiate Left and Right Shifts */
313INPUT_PORTS_START( spec_joys )
314   PORT_START("JOY_INTF")
315   PORT_CATEGORY_CLASS( 0x0f, 0x01, "Joystick Interface")
316   PORT_CATEGORY_ITEM(  0x00, "None (No Joystick)",   0 )
317   PORT_CATEGORY_ITEM(  0x01, "Kempston",            1 )
318   PORT_CATEGORY_ITEM(  0x02, "Fuller",            2 )
319   PORT_CATEGORY_ITEM(  0x03, "Mikrogen",            3 )
320
321   PORT_START("KEMPSTON") /* Kempston joystick interface */
322   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("P1 Joystick Right (Kempston)") PORT_CODE(JOYCODE_X_RIGHT_SWITCH) PORT_CATEGORY(1)
323   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("P1 Joystick Left (Kempston)") PORT_CODE(JOYCODE_X_LEFT_SWITCH) PORT_CATEGORY(1)
324   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("P1 Joystick Down (Kempston)") PORT_CODE(JOYCODE_Y_DOWN_SWITCH) PORT_CATEGORY(1)
325   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("P1 Joystick Up (Kempston)") PORT_CODE(JOYCODE_Y_UP_SWITCH) PORT_CATEGORY(1)
326   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("P1 Joystick Fire (Kempston)") PORT_CODE(JOYCODE_BUTTON1) PORT_CATEGORY(1)
327
328   PORT_START("FULLER") /* Fuller joystick interface */
329   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Up (Fuller)") PORT_CODE(JOYCODE_Y_UP_SWITCH) PORT_CATEGORY(2)
330   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Down (Fuller)") PORT_CODE(JOYCODE_Y_DOWN_SWITCH) PORT_CATEGORY(2)
331   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Left (Fuller)") PORT_CODE(JOYCODE_X_LEFT_SWITCH) PORT_CATEGORY(2)
332   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Right (Fuller)") PORT_CODE(JOYCODE_X_RIGHT_SWITCH) PORT_CATEGORY(2)
333   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Fire (Fuller)") PORT_CODE(JOYCODE_BUTTON1) PORT_CATEGORY(2)
334
335   PORT_START("MIKROGEN") /* Mikrogen joystick interface */
336   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Up (Mikrogen)") PORT_CODE(JOYCODE_Y_UP_SWITCH) PORT_CATEGORY(3)
337   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Down (Mikrogen)") PORT_CODE(JOYCODE_Y_DOWN_SWITCH) PORT_CATEGORY(3)
338   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Right (Mikrogen)") PORT_CODE(JOYCODE_X_RIGHT_SWITCH) PORT_CATEGORY(3)
339   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Left (Mikrogen)") PORT_CODE(JOYCODE_X_LEFT_SWITCH) PORT_CATEGORY(3)
340   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P1 Joystick Fire (Mikrogen)") PORT_CODE(JOYCODE_BUTTON1) PORT_CATEGORY(3)
341INPUT_PORTS_END
342
343/*
344Spectrum keyboard is quite complicate to emulate. Each key can have 5 or 6 different functions, depending on which input mode we are in:
345
346-------------------------------------------------------------------------------------------------------------------
347    Mode           |  Sequence on Spectrum              |  Sequence in MESS
348-------------------------------------------------------------------------------------------------------------------
349    KEY Mode       |  Simply press the key              |  Simply press the key
350    CAPS Mode      |  Press Key + CAPS SHIFT            |  Press Key + LShift (default mapping)
351    SYMBOL Mode    |  Press Key + SYMBOL SHIFT          |  Press Key + RShift (default mapping)
352    EXT Mode       |  Press CAPS + SYMBOL once,         |  Press LShift + RShift (to enter EXT Mode),
353                   |     then press Key                 |     then press Key
354    EXT+Shift Mode |  In EXT Mode, press Key + SHIFT    |  In EXT Mode, press Key + LShift or Key + RShift
355                   |    (no matter if CAPS and SYMBOL)  |
356    BASIC Mode     |  At BASIC Prompt, press the key    |  At BASIC Prompt, press the key
357-------------------------------------------------------------------------------------------------------------------
358
359Number Keys are the only keys not having a function in BASIC Mode (hence, they only have 5 functions)
360
3612009-04: Added natural keyboard support. The commented out PORT_CHARs are not reachable in natural keyboard mode (they are entered
362in EXT+Shift Mode on a real Spectrum).
363*/
364
365/* TO DO: replace PORT_CHAR('\xD7') with an 'empty' PORT_CHAR. I used \xD7 (multiplication sign) just as a placeholder. There should be no
366PORT_CHAR for those functions (which have no equivalent on modern keyboards), but something is needed (to correctly have natural support for
367a few keys in SYMBOL Mode) and I found no EMPTY PORT_CHAR in MESS */
313368INPUT_PORTS_START( spectrum )
314   PORT_START("LINE0") /* [0] 0xFEFE */
369   /* PORT_NAME =  KEY Mode    CAPS Mode    SYMBOL Mode   EXT Mode   EXT+Shift Mode   BASIC Mode  */
370   PORT_START("LINE0") /* 0xFEFE */
315371   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CAPS SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
316   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z  COPY    :      LN       BEEP") PORT_CODE(KEYCODE_Z)   PORT_CHAR('z') PORT_CHAR('Z')// PORT_CHAR(':')
317   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X  CLEAR   Pound  EXP      INK") PORT_CODE(KEYCODE_X)   PORT_CHAR('x') PORT_CHAR('X')// PORT_CHAR('\xA3')
318   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C  CONT    ?      LPRINT   PAPER") PORT_CODE(KEYCODE_C)   PORT_CHAR('c') PORT_CHAR('C')// PORT_CHAR('?')
319   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V  CLS     /      LLIST    FLASH") PORT_CODE(KEYCODE_V)   PORT_CHAR('v') PORT_CHAR('V')// PORT_CHAR('/')
372   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("z    Z    :      LN       BEEP   COPY") PORT_CODE(KEYCODE_Z)      PORT_CHAR('z') PORT_CHAR('Z') PORT_CHAR(':')
373   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("x    X    \xC2\xA3   EXP      INK    CLEAR") PORT_CODE(KEYCODE_X)   PORT_CHAR('x') PORT_CHAR('X') PORT_CHAR('\xA3')
374   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("c    C    ?      LPRINT   PAPER  CONT") PORT_CODE(KEYCODE_C)      PORT_CHAR('c') PORT_CHAR('C') PORT_CHAR('?')
375   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("v    V    /      LLIST    FLASH  CLS") PORT_CODE(KEYCODE_V)      PORT_CHAR('v') PORT_CHAR('V') PORT_CHAR('/')
320376
321   PORT_START("LINE1") /* [1] 0xFDFE */
322   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A  NEW     STOP   READ     ~") PORT_CODE(KEYCODE_A)      PORT_CHAR('a') PORT_CHAR('A')// PORT_CHAR('~')
323   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S  SAVE    NOT    RESTORE  |") PORT_CODE(KEYCODE_S)      PORT_CHAR('s') PORT_CHAR('S')// PORT_CHAR('|')
324   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D  DIM     STEP   DATA     \\") PORT_CODE(KEYCODE_D)      PORT_CHAR('d') PORT_CHAR('D')// PORT_CHAR('\\')
325   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F  FOR     TO     SGN      {") PORT_CODE(KEYCODE_F)      PORT_CHAR('f') PORT_CHAR('F')// PORT_CHAR('{')
326   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G  GOTO    THEN   ABS      }") PORT_CODE(KEYCODE_G)      PORT_CHAR('g') PORT_CHAR('G')// PORT_CHAR('}')
377   PORT_START("LINE1") /* 0xFDFE */
378   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("a    A    STOP   READ      ~     NEW") PORT_CODE(KEYCODE_A)      PORT_CHAR('a') PORT_CHAR('A')// PORT_CHAR('~')
379   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("s    S    NOT    RESTORE   |     SAVE") PORT_CODE(KEYCODE_S)      PORT_CHAR('s') PORT_CHAR('S')// PORT_CHAR('|')
380   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("d    D    STEP   DATA      \\    DIM") PORT_CODE(KEYCODE_D)      PORT_CHAR('d') PORT_CHAR('D')// PORT_CHAR('\\')
381   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f    F    TO     SGN       {     FOR") PORT_CODE(KEYCODE_F)      PORT_CHAR('f') PORT_CHAR('F')// PORT_CHAR('{')
382   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("g    G    THEN   ABS       }     GOTO") PORT_CODE(KEYCODE_G)      PORT_CHAR('g') PORT_CHAR('G')// PORT_CHAR('}')
327383
328   PORT_START("LINE2") /* [2] 0xFBFE */
329   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q  PLOT    <=     SIN      ASN") PORT_CODE(KEYCODE_Q)   PORT_CHAR('q') PORT_CHAR('Q')
330   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W  DRAW    <>     COS      ACS") PORT_CODE(KEYCODE_W)   PORT_CHAR('w') PORT_CHAR('W')
331   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E  REM     >=     TAN      ATN") PORT_CODE(KEYCODE_E)   PORT_CHAR('e') PORT_CHAR('E')
332   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R  RUN     <      INT      VERIFY") PORT_CODE(KEYCODE_R)   PORT_CHAR('r') PORT_CHAR('R')// PORT_CHAR('<')
333   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T  RAND    >      RND      MERGE") PORT_CODE(KEYCODE_T)   PORT_CHAR('t') PORT_CHAR('T')// PORT_CHAR('>')
384   PORT_START("LINE2") /* 0xFBFE */
385   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("q    Q    <=     SIN      ASN      PLOT") PORT_CODE(KEYCODE_Q)   PORT_CHAR('q') PORT_CHAR('Q')
386   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("w    W    <>     COS      ACS      DRAW") PORT_CODE(KEYCODE_W)   PORT_CHAR('w') PORT_CHAR('W')
387   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("e    E    >=     TAN      ATN      REM") PORT_CODE(KEYCODE_E)   PORT_CHAR('e') PORT_CHAR('E')
388   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("r    R    <      INT      VERIFY   RUN") PORT_CODE(KEYCODE_R)   PORT_CHAR('r') PORT_CHAR('R') PORT_CHAR('<')
389   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("t    T    >      RND      MERGE    RAND") PORT_CODE(KEYCODE_T)   PORT_CHAR('t') PORT_CHAR('T') PORT_CHAR('>')
334390
335391   /* interface II uses this port for joystick */
336   PORT_START("LINE3") /* [3] 0xF7FE */
337   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1          !      BLUE     DEF FN") PORT_CODE(KEYCODE_1)   PORT_CHAR('1')// PORT_CHAR('!')
338   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2          @      RED      FN") PORT_CODE(KEYCODE_2)      PORT_CHAR('2')// PORT_CHAR('@')
339   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3          #      MAGENTA  LINE") PORT_CODE(KEYCODE_3)   PORT_CHAR('3')// PORT_CHAR('#')
340   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4          $      GREEN    OPEN#") PORT_CODE(KEYCODE_4)   PORT_CHAR('4')// PORT_CHAR('$')
341   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5          %      CYAN     CLOSE#") PORT_CODE(KEYCODE_5)   PORT_CHAR('5')// PORT_CHAR('%')
392   PORT_START("LINE3") /* 0xF7FE */
393   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1   EDIT       !    BLUE     DEF FN") PORT_CODE(KEYCODE_1)   PORT_CHAR('1') PORT_CHAR('\xD7') PORT_CHAR('!')
394   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2   CAPS LOCK  @    RED      FN") PORT_CODE(KEYCODE_2)      PORT_CHAR('2') PORT_CHAR('\xD7') PORT_CHAR('@')
395   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3   TRUE VID   #    MAGENTA  LINE") PORT_CODE(KEYCODE_3)      PORT_CHAR('3') PORT_CHAR('\xD7') PORT_CHAR('#')
396   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4   INV VID    $    GREEN    OPEN#") PORT_CODE(KEYCODE_4)   PORT_CHAR('4') PORT_CHAR('\xD7') PORT_CHAR('$')
397   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5   Left       %    CYAN     CLOSE#") PORT_CODE(KEYCODE_5)   PORT_CHAR('5') PORT_CHAR(UCHAR_MAMEKEY(LEFT)) PORT_CHAR('%')
342398
343399   /* protek clashes with interface II! uses 5 = left, 6 = down, 7 = up, 8 = right, 0 = fire */
344   PORT_START("LINE4") /* [4] 0xEFFE */
345   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0          _      BLACK    FORMAT") PORT_CODE(KEYCODE_0)   PORT_CHAR('0')// PORT_CHAR('_')
346   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9          )               POINT") PORT_CODE(KEYCODE_9)   PORT_CHAR('9')// PORT_CHAR(')')
347   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8          (               CAT") PORT_CODE(KEYCODE_8)   PORT_CHAR('8')// PORT_CHAR('(')
348   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7          '      WHITE    ERASE") PORT_CODE(KEYCODE_7)   PORT_CHAR('7')// PORT_CHAR('\'')
349   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6          &      YELLOW   MOVE") PORT_CODE(KEYCODE_6)   PORT_CHAR('6')// PORT_CHAR('&')
400   PORT_START("LINE4") /* 0xEFFE */
401   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0   DEL        _    BLACK    FORMAT") PORT_CODE(KEYCODE_0)   PORT_CHAR('0') PORT_CHAR(8) PORT_CHAR('_')
402   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9   GRAPH      )             POINT") PORT_CODE(KEYCODE_9)   PORT_CHAR('9') PORT_CHAR('\xD7') PORT_CHAR(')')
403   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8   Right      (             CAT") PORT_CODE(KEYCODE_8)      PORT_CHAR('8') PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) PORT_CHAR('(')
404   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7   Up         '    WHITE    ERASE") PORT_CODE(KEYCODE_7)   PORT_CHAR('7') PORT_CHAR(UCHAR_MAMEKEY(UP)) PORT_CHAR('\'')
405   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6   Down       &    YELLOW   MOVE") PORT_CODE(KEYCODE_6)      PORT_CHAR('6') PORT_CHAR(UCHAR_MAMEKEY(DOWN)) PORT_CHAR('&')
350406
351   PORT_START("LINE5") /* [5] 0xDFFE */
352   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P  PRINT   \"      TAB      (c)") PORT_CODE(KEYCODE_P)   PORT_CHAR('p') PORT_CHAR('P')// PORT_CHAR('\"')
353   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O  POKE    ;      PEEK     OUT") PORT_CODE(KEYCODE_O)   PORT_CHAR('o') PORT_CHAR('O')// PORT_CHAR(';')
354   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I  INPUT   AT     CODE     IN") PORT_CODE(KEYCODE_I)      PORT_CHAR('i') PORT_CHAR('I')
355   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U  IF      OR     CHR$     ]") PORT_CODE(KEYCODE_U)      PORT_CHAR('u') PORT_CHAR('U')
356   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y  RETURN  AND    STR$     [") PORT_CODE(KEYCODE_Y)      PORT_CHAR('y') PORT_CHAR('Y')
407   PORT_START("LINE5") /* 0xDFFE */
408   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("p    P    \"     TAB      (c)    PRINT") PORT_CODE(KEYCODE_P)   PORT_CHAR('p') PORT_CHAR('P') PORT_CHAR('"')
409   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("o    O    ;      PEEK     OUT    POKE") PORT_CODE(KEYCODE_O)      PORT_CHAR('o') PORT_CHAR('O') PORT_CHAR(';')
410   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("i    I    AT     CODE     IN     INPUT") PORT_CODE(KEYCODE_I)   PORT_CHAR('i') PORT_CHAR('I')
411   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("u    U    OR     CHR$     ]      IF") PORT_CODE(KEYCODE_U)      PORT_CHAR('u') PORT_CHAR('U')// PORT_CHAR(']')
412   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("y    Y    AND    STR$     [      RETURN") PORT_CODE(KEYCODE_Y)   PORT_CHAR('y') PORT_CHAR('Y')// PORT_CHAR('[')
357413
358   PORT_START("LINE6") /* [6] 0xBFFE */
414   PORT_START("LINE6") /* 0xBFFE */
359415   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13)
360   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L  LET     =      USR      ATTR") PORT_CODE(KEYCODE_L)      PORT_CHAR('l') PORT_CHAR('L')// PORT_CHAR('=')
361   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K  LIST    +      LEN      SCREEN$") PORT_CODE(KEYCODE_K)   PORT_CHAR('k') PORT_CHAR('K')// PORT_CHAR('+')
362   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J  LOAD    -      VAL      VAL$") PORT_CODE(KEYCODE_J)      PORT_CHAR('j') PORT_CHAR('J')// PORT_CHAR('-')
363   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H  GOSUB   ^      SQR      CIRCLE") PORT_CODE(KEYCODE_H)      PORT_CHAR('h') PORT_CHAR('H')// PORT_CHAR('^')
416   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("l    L    =      USR      ATTR     LET") PORT_CODE(KEYCODE_L)   PORT_CHAR('l') PORT_CHAR('L') PORT_CHAR('=')
417   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("k    K    +      LEN      SCREEN$  LIST") PORT_CODE(KEYCODE_K)   PORT_CHAR('k') PORT_CHAR('K') PORT_CHAR('+')
418   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("j    J    -      VAL      VAL$     LOAD") PORT_CODE(KEYCODE_J)   PORT_CHAR('j') PORT_CHAR('J') PORT_CHAR('-')
419   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("h    H    ^      SQR      CIRCLE   GOSUB") PORT_CODE(KEYCODE_H)   PORT_CHAR('h') PORT_CHAR('H') PORT_CHAR('^')
364420
365   PORT_START("LINE7") /* [7] 0x7FFE */
421   PORT_START("LINE7") /* 0x7FFE */
366422   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ')
367   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SYMBOL SHIFT") PORT_CODE(KEYCODE_RSHIFT)
368   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M  PAUSE   .      PI       INVERSE") PORT_CODE(KEYCODE_M)   PORT_CHAR('m') PORT_CHAR('M')// PORT_CHAR('.')
369   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N  NEXT    ,      INKEY$   OVER") PORT_CODE(KEYCODE_N)      PORT_CHAR('n') PORT_CHAR('N')// PORT_CHAR(',')
370   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B  BORDER  *      BIN      BRIGHT") PORT_CODE(KEYCODE_B)      PORT_CHAR('b') PORT_CHAR('B')// PORT_CHAR('*')
423   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SYMBOL SHIFT") PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_2)
424   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("m    M    .      PI       INVERSE  PAUSE") PORT_CODE(KEYCODE_M)   PORT_CHAR('m') PORT_CHAR('M') PORT_CHAR('.')
425   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("n    N    ,      INKEY$   OVER     NEXT") PORT_CODE(KEYCODE_N)   PORT_CHAR('n') PORT_CHAR('N') PORT_CHAR(',')
426   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("b    B    *      BIN      BRIGHT   BORDER") PORT_CODE(KEYCODE_B)   PORT_CHAR('b') PORT_CHAR('B') PORT_CHAR('*')
371427
372   PORT_START("PLUS0") /* [8] Spectrum+ Keys (set CAPS + 1-5) */
373   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("EDIT          (CAPS + 1)") PORT_CODE(KEYCODE_INSERT)
374   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CAPS LOCK     (CAPS + 2)") PORT_CODE(KEYCODE_CAPSLOCK)
375   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("TRUE VID      (CAPS + 3)") PORT_CODE(KEYCODE_HOME)
376   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("INV VID       (CAPS + 4)") PORT_CODE(KEYCODE_END)
377   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cursor left   (CAPS + 5)") PORT_CODE(KEYCODE_LEFT)
428   PORT_START("NMI")
429   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("NMI") PORT_CODE(KEYCODE_F12)
430
431   PORT_START("CONFIG")
432   PORT_DIPNAME( 0x80, 0x00, "Hardware Version" )
433   PORT_DIPSETTING(   0x00, "Issue 2" )
434   PORT_DIPSETTING(   0x80, "Issue 3" )
435   PORT_DIPNAME( 0x40, 0x00, "End of .TAP action" )
436   PORT_DIPSETTING(   0x00, "Disable .TAP support" )
437   PORT_DIPSETTING(   0x40, "Rewind tape to start (to reload earlier levels)" )
438   PORT_DIPNAME( 0x20, 0x00, "+3/+2a etc. Disk Drive" )
439   PORT_DIPSETTING(   0x00, "Enabled" )
440   PORT_DIPSETTING(   0x20, "Disabled" )
441   PORT_BIT(0x1f, IP_ACTIVE_LOW, IPT_UNUSED)
442
443   PORT_INCLUDE( spec_joys )
444INPUT_PORTS_END
445
446/* These keys need not to be mapped in natural mode because Spectrum+ supports both these and the Spectrum sequences above.
447   Hence, we can simply keep using such sequences in natural keyboard emulation */
448INPUT_PORTS_START( spec_plus )
449   PORT_INCLUDE( spectrum )
450
451   PORT_START("PLUS0") /* Spectrum+ Keys (Same as CAPS + 1-5) */
452   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("EDIT") PORT_CODE(KEYCODE_INSERT)
453   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CAPS LOCK") PORT_CODE(KEYCODE_CAPSLOCK)
454   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("TRUE VID") PORT_CODE(KEYCODE_HOME)
455   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("INV VID") PORT_CODE(KEYCODE_END)
456   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cursor Left") PORT_CODE(KEYCODE_LEFT)
378457   PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED)
379458
380   PORT_START("PLUS1") /* [9] Spectrum+ Keys (set CAPS + 6-0) */
381   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("DEL           (CAPS + 0)") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8)
382   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GRAPH         (CAPS + 9)") PORT_CODE(KEYCODE_LALT)
383   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cursor right  (CAPS + 8)") PORT_CODE(KEYCODE_RIGHT)
384   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cursor up     (CAPS + 7)") PORT_CODE(KEYCODE_UP)
385   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cursor down   (CAPS + 6)") PORT_CODE(KEYCODE_DOWN)
459   PORT_START("PLUS1") /* Spectrum+ Keys (Same as CAPS + 6-0) */
460   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("DEL") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8)
461   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GRAPH") PORT_CODE(KEYCODE_LALT)
462   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cursor Right") PORT_CODE(KEYCODE_RIGHT)
463   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cursor Up") PORT_CODE(KEYCODE_UP)
464   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Cursor Down") PORT_CODE(KEYCODE_DOWN)
386465   PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED)
387466
388   PORT_START("PLUS2") /* [10] Spectrum+ Keys (set CAPS + SPACE and CAPS + SYMBOL */
467   PORT_START("PLUS2") /* Spectrum+ Keys (Same as CAPS + SPACE and CAPS + SYMBOL) */
389468   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("BREAK") PORT_CODE(KEYCODE_PAUSE)
390469   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("EXT MODE") PORT_CODE(KEYCODE_LCONTROL)
391470   PORT_BIT(0xfc, IP_ACTIVE_LOW, IPT_UNUSED)
392471
393   PORT_START("PLUS3") /* [11] Spectrum+ Keys (set SYMBOL SHIFT + O/P */
472   PORT_START("PLUS3") /* Spectrum+ Keys (Same as SYMBOL SHIFT + O/P) */
394473   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\"") PORT_CODE(KEYCODE_F4)
395474   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(";") PORT_CODE(KEYCODE_COLON)
396475   PORT_BIT(0xfc, IP_ACTIVE_LOW, IPT_UNUSED)
397476
398   PORT_START("PLUS4") /* [12] Spectrum+ Keys (set SYMBOL SHIFT + N/M */
477   PORT_START("PLUS4") /* Spectrum+ Keys (Same as SYMBOL SHIFT + N/M) */
399478   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_STOP)
400479   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(",") PORT_CODE(KEYCODE_COMMA)
401480   PORT_BIT(0xf3, IP_ACTIVE_LOW, IPT_UNUSED)
402
403   PORT_START("KEMPSTON") /* [13] Kempston joystick interface */
404   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("KEMPSTON JOYSTICK RIGHT") PORT_CODE(JOYCODE_X_RIGHT_SWITCH)
405   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("KEMPSTON JOYSTICK LEFT") PORT_CODE(JOYCODE_X_LEFT_SWITCH)
406   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("KEMPSTON JOYSTICK DOWN") PORT_CODE(JOYCODE_Y_DOWN_SWITCH)
407   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("KEMPSTON JOYSTICK UP") PORT_CODE(JOYCODE_Y_UP_SWITCH)
408   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("KEMPSTON JOYSTICK FIRE") PORT_CODE(JOYCODE_BUTTON1)
409
410   PORT_START("FULLER") /* [14] Fuller joystick interface */
411   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("FULLER JOYSTICK UP") PORT_CODE(JOYCODE_Y_UP_SWITCH)
412   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("FULLER JOYSTICK DOWN") PORT_CODE(JOYCODE_Y_DOWN_SWITCH)
413   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("FULLER JOYSTICK LEFT") PORT_CODE(JOYCODE_X_LEFT_SWITCH)
414   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("FULLER JOYSTICK RIGHT") PORT_CODE(JOYCODE_X_RIGHT_SWITCH)
415   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("FULLER JOYSTICK FIRE") PORT_CODE(JOYCODE_BUTTON1)
416
417   PORT_START("MIKROGEN") /* [15] Mikrogen joystick interface */
418   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("MIKROGEN JOYSTICK UP") PORT_CODE(JOYCODE_Y_UP_SWITCH)
419   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("MIKROGEN JOYSTICK DOWN") PORT_CODE(JOYCODE_Y_DOWN_SWITCH)
420   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("MIKROGEN JOYSTICK RIGHT") PORT_CODE(JOYCODE_X_RIGHT_SWITCH)
421   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("MIKROGEN JOYSTICK LEFT") PORT_CODE(JOYCODE_X_LEFT_SWITCH)
422   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("MIKROGEN JOYSTICK FIRE") PORT_CODE(JOYCODE_BUTTON1)
423
424   PORT_START("NMI")
425   PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("NMI") PORT_CODE(KEYCODE_F12)
426
427   PORT_START("CONFIG") /* [16] */
428   PORT_DIPNAME(0x80, 0x00, "Hardware Version")
429   PORT_DIPSETTING(0x00, "Issue 2" )
430   PORT_DIPSETTING(0x80, "Issue 3" )
431   PORT_DIPNAME(0x40, 0x00, "End of .TAP action")
432   PORT_DIPSETTING(0x00, "Disable .TAP support" )
433   PORT_DIPSETTING(0x40, "Rewind tape to start (to reload earlier levels)" )
434   PORT_DIPNAME(0x20, 0x00, "+3/+2a etc. Disk Drive")
435   PORT_DIPSETTING(0x00, "Enabled" )
436   PORT_DIPSETTING(0x20, "Disabled" )
437   PORT_BIT(0x1f, IP_ACTIVE_LOW, IPT_UNUSED)
438481INPUT_PORTS_END
439482
440483
src/mess/drivers/spec128.c
r4513r4514
352352SYSTEM_CONFIG_END
353353
354354/*    YEAR  NAME      PARENT    COMPAT  MACHINE     INPUT       INIT    CONFIG      COMPANY     FULLNAME */
355COMP( 1986, spec128,  0,         0,      spectrum_128,   spectrum,   0,      spec128,   "Sinclair Research",    "ZX Spectrum 128" , 0 )
356COMP( 1986, specpls2, spec128, 0,      spectrum_128,   spectrum,   0,      spec128,   "Amstrad plc",          "ZX Spectrum +2" , 0 )
357COMP( 1991, hc128,    spec128, 0,      spectrum_128, spectrum,   0,      spec128,   "ICE-Felix",   "HC-128" , 0)
358COMP( 1992, hc2000,   spec128, 0,      spectrum_128,   spectrum,   0,      spec128,   "ICE-Felix",   "HC-2000" , GAME_NOT_WORKING)
355COMP( 1986, spec128,  0,      0,      spectrum_128,   spec_plus,   0,      spec128,   "Sinclair Research",    "ZX Spectrum 128" , 0 )
356COMP( 1986, specpls2, spec128, 0,      spectrum_128,   spec_plus,   0,      spec128,   "Amstrad plc",          "ZX Spectrum +2" , 0 )
357COMP( 1991, hc128,    spec128, 0,      spectrum_128,   spec_plus,   0,      spec128,   "ICE-Felix",         "HC-128" , 0)
358COMP( 1992, hc2000,   spec128, 0,      spectrum_128,   spec_plus,   0,      spec128,   "ICE-Felix",         "HC-2000" , GAME_NOT_WORKING)
src/mess/drivers/timex.c
r4513r4514
699699SYSTEM_CONFIG_END
700700
701701/*    YEAR  NAME      PARENT    COMPAT  MACHINE     INPUT       INIT    CONFIG      COMPANY     FULLNAME */
702COMP( 1984, tc2048,   spectrum, 0,      tc2048,         spectrum,   0,      tc2048,      "Timex of Portugal",   "TC-2048" , 0)
703COMP( 1983, ts2068,   spectrum, 0,      ts2068,         spectrum,   0,      ts2068,      "Timex Sinclair",   "TS-2068" , 0)
704COMP( 1986, uk2086,   spectrum, 0,      uk2086,         spectrum,   0,      ts2068,      "Unipolbrit",   "UK-2086 ver. 1.2" , 0)
702COMP( 1984, tc2048,   spectrum, 0,      tc2048,      spectrum,   0,      tc2048,      "Timex of Portugal",   "TC-2048" , 0)
703COMP( 1983, ts2068,   spectrum, 0,      ts2068,      spectrum,   0,      ts2068,      "Timex Sinclair",      "TS-2068" , 0)
704COMP( 1986, uk2086,   spectrum, 0,      uk2086,      spectrum,   0,      ts2068,      "Unipolbrit",         "UK-2086 ver. 1.2" , 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team