Previous 15994 Revisions Next

r1155 Friday 19th October, 2007 at 15:51:01 UTC by Wilbert Pol
[PET] Removed some more unneeded input ports and defines
[src/mess/drivers]pet.c
[src/mess/includes]pet.h

src/mess/includes/pet.h
r1154r1155
2020
2121extern int pet_font;
2222
23#define QUICKLOAD      (input_port_11_word_r(0,0)&0x8000)
24#define DATASSETTE (input_port_11_word_r(0,0)&0x4000)
25#define DATASSETTE_TONE (input_port_11_word_r(0,0)&0x2000)
26
27#define DATASSETTE_PLAY      (input_port_11_word_r(0,0)&0x1000)
28#define DATASSETTE_RECORD   (input_port_11_word_r(0,0)&0x800)
29#define DATASSETTE_STOP      (input_port_11_word_r(0,0)&0x400)
30
3123#define CBM8096_MEMORY (input_port_11_r(0)&8)
3224#define M6809_SELECT (input_port_11_r(0)&4)
3325#define IEEE8ON (input_port_11_r(0)&2)
src/mess/drivers/pet.c
r1154r1155
410410   PET_KEYBOARD
411411    PORT_START /* 11 - used to be 5 */
412412    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
413#ifdef PET_TEST_CODE
414   PORT_DIPNAME   ( 0x4000, 0x4000, "Tape Drive/Device 1")
415   PORT_DIPSETTING(  0, DEF_STR( Off ) )
416   PORT_DIPSETTING(0x4000, DEF_STR( On ) )
417   PORT_DIPNAME   ( 0x2000, 0x00, " Tape Sound")
418   PORT_DIPSETTING(  0, DEF_STR( Off ) )
419   PORT_DIPSETTING(0x2000, DEF_STR( On ) )
420   PORT_BIT(0x1000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Play") PORT_CODE(KEYCODE_F5)
421   PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Record") PORT_CODE(KEYCODE_F6)
422   PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Stop") PORT_CODE(KEYCODE_F7)
423#endif
424413   PORT_DIPNAME   ( 0x180, 0x180, "Memory")
425414   PORT_DIPSETTING(  0, "4KByte" )
426415   PORT_DIPSETTING(  0x80, "8KByte" )
r1154r1155
440429   PET_B_KEYBOARD
441430    PORT_START   /* 11 - used to be 5 */
442431    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
443#ifdef PET_TEST_CODE
444   PORT_DIPNAME   ( 0x4000, 0x4000, "Tape Drive/Device 1")
445   PORT_DIPSETTING(  0, DEF_STR( Off ) )
446   PORT_DIPSETTING(0x4000, DEF_STR( On ) )
447   PORT_DIPNAME   ( 0x2000, 0x00, " Tape Sound")
448   PORT_DIPSETTING(  0, DEF_STR( Off ) )
449   PORT_DIPSETTING(0x2000, DEF_STR( On ) )
450   PORT_BIT(0x1000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Play") PORT_CODE(KEYCODE_F5)
451   PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Record") PORT_CODE(KEYCODE_F6)
452   PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Stop") PORT_CODE(KEYCODE_F7)
453#endif
454432   PORT_BIT (8, 0, IPT_UNUSED) /* no 8096 hardware */
455433   PORT_BIT (4, 0, IPT_UNUSED) /* no superpet switch */
456434   PORT_DIPNAME ( 0x02, 0x02, "IEEE488 Bus/Dev 8/Floppy Sim")
r1154r1155
465443   PET_B_KEYBOARD
466444    PORT_START   /* 11 - used to be 5 */
467445    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
468#ifdef PET_TEST_CODE
469   PORT_DIPNAME   ( 0x4000, 0x4000, "Tape Drive/Device 1")
470   PORT_DIPSETTING(  0, DEF_STR( Off ) )
471   PORT_DIPSETTING(0x4000, DEF_STR( On ) )
472   PORT_DIPNAME   ( 0x2000, 0x00, " Tape Sound")
473   PORT_DIPSETTING(  0, DEF_STR( Off ) )
474   PORT_DIPSETTING(0x2000, DEF_STR( On ) )
475   PORT_BIT(0x1000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Play") PORT_CODE(KEYCODE_F5)
476   PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Record") PORT_CODE(KEYCODE_F6)
477   PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Stop") PORT_CODE(KEYCODE_F7)
478#endif
479446   PORT_DIPNAME ( 0x08, 0x08, "CBM8096, 8296 Expansion Memory")
480447   PORT_DIPSETTING(  0, DEF_STR( No ) )
481448   PORT_DIPSETTING(0x08, DEF_STR( Yes ) )
r1154r1155
492459   PET_B_KEYBOARD
493460    PORT_START   /* 11 - used to be 5 */
494461    PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Quickload") PORT_CODE(KEYCODE_F8)
495#ifdef PET_TEST_CODE
496   PORT_DIPNAME   ( 0x4000, 0x4000, "Tape Drive/Device 1")
497   PORT_DIPSETTING(  0, DEF_STR( Off ) )
498   PORT_DIPSETTING(0x4000, DEF_STR( On ) )
499   PORT_DIPNAME   ( 0x2000, 0x00, " Tape Sound")
500   PORT_DIPSETTING(  0, DEF_STR( Off ) )
501   PORT_DIPSETTING(0x2000, DEF_STR( On ) )
502   PORT_BIT(0x1000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Play") PORT_CODE(KEYCODE_F5)
503   PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Record") PORT_CODE(KEYCODE_F6)
504   PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Tape Drive Stop") PORT_CODE(KEYCODE_F7)
505#endif
506462   PORT_BIT (8, 0, IPT_UNUSED) /* no 8096 hardware */
507463   PORT_DIPNAME   ( 4, 4, "CPU Select")
508464   PORT_DIPSETTING( 0, "M6502" )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team