src/mess/machine/pp01.c
| r4836 | r4837 | |
| 13 | 13 | |
| 14 | 14 | static UINT8 memory_block[16]; |
| 15 | 15 | UINT8 pp01_video_scroll; |
| 16 | UINT8 pp01_video_write_mode; |
| 16 | 17 | |
| 18 | WRITE8_HANDLER (pp01_video_write_mode_w) |
| 19 | { |
| 20 | pp01_video_write_mode = data & 0x0f; |
| 21 | } |
| 22 | |
| 17 | 23 | /* Driver initialization */ |
| 18 | 24 | DRIVER_INIT(pp01) |
| 19 | 25 | { |
| 20 | 26 | memset(mess_ram, 0, 64 * 1024); |
| 21 | 27 | } |
| 22 | 28 | |
| 23 | | static void pp01_set_memory(running_machine *machine) |
| 29 | |
| 30 | static void pp01_video_w(UINT8 block,UINT16 offset,UINT8 data,UINT8 part) |
| 31 | { |
| 32 | UINT16 addroffset = part ? 0x1000 : 0x0000; |
| 33 | |
| 34 | if (BIT(pp01_video_write_mode,3)) { |
| 35 | // Copy mode |
| 36 | if(BIT(pp01_video_write_mode,0)) { |
| 37 | mess_ram[0x6000+offset+addroffset] = data; |
| 38 | } |
| 39 | if(BIT(pp01_video_write_mode,1)) { |
| 40 | mess_ram[0xa000+offset+addroffset] = data; |
| 41 | } |
| 42 | if(BIT(pp01_video_write_mode,2)) { |
| 43 | mess_ram[0xe000+offset+addroffset] = data; |
| 44 | } |
| 45 | } else { |
| 46 | if (block==0) { |
| 47 | mess_ram[0x6000+offset+addroffset] = data; |
| 48 | } |
| 49 | if (block==1) { |
| 50 | mess_ram[0xa000+offset+addroffset] = data; |
| 51 | } |
| 52 | if (block==2) { |
| 53 | mess_ram[0xe000+offset+addroffset] = data; |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | static WRITE8_HANDLER (pp01_video_r_1_w) |
| 59 | { |
| 60 | pp01_video_w(0,offset,data,0); |
| 61 | } |
| 62 | static WRITE8_HANDLER (pp01_video_g_1_w) |
| 63 | { |
| 64 | pp01_video_w(1,offset,data,0); |
| 65 | } |
| 66 | static WRITE8_HANDLER (pp01_video_b_1_w) |
| 67 | { |
| 68 | pp01_video_w(2,offset,data,0); |
| 69 | } |
| 70 | |
| 71 | static WRITE8_HANDLER (pp01_video_r_2_w) |
| 72 | { |
| 73 | pp01_video_w(0,offset,data,1); |
| 74 | } |
| 75 | static WRITE8_HANDLER (pp01_video_g_2_w) |
| 76 | { |
| 77 | pp01_video_w(1,offset,data,1); |
| 78 | } |
| 79 | static WRITE8_HANDLER (pp01_video_b_2_w) |
| 80 | { |
| 81 | pp01_video_w(2,offset,data,1); |
| 82 | } |
| 83 | |
| 84 | |
| 85 | static void pp01_set_memory(running_machine *machine,UINT8 block, UINT8 data) |
| 24 | 86 | { |
| 25 | 87 | UINT8 *mem = memory_region(machine, "maincpu"); |
| 26 | 88 | const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); |
| 27 | | int i; |
| 28 | | UINT8 map; |
| 29 | | |
| 30 | | for(i=0;i<16;i++) { |
| 31 | | map = memory_block[i]; |
| 32 | | if (map>=0xE0 && map<=0xEF) { |
| 33 | | // This is RAM |
| 34 | | memory_install_read8_handler (space, i*0x1000, ((i+1)*0x1000)-1, 0, 0, SMH_BANK(i+1)); |
| 35 | | memory_install_write8_handler(space, i*0x1000, ((i+1)*0x1000)-1, 0, 0, SMH_BANK(i+1)); |
| 36 | | memory_set_bankptr(machine, i+1, mess_ram + (map & 0x0F)* 0x1000); |
| 37 | | } else if (map>=0xF8) { |
| 38 | | memory_install_read8_handler (space, i*0x1000, ((i+1)*0x1000)-1, 0, 0, SMH_BANK(i+1)); |
| 39 | | memory_install_write8_handler(space, i*0x1000, ((i+1)*0x1000)-1, 0, 0, SMH_UNMAP); |
| 40 | | memory_set_bankptr(machine, i+1, mem + ((map & 0x0F)-8)* 0x1000+0x10000); |
| 41 | | } else { |
| 42 | | memory_install_read8_handler(space, i*0x1000, ((i+1)*0x1000)-1, 0, 0, SMH_UNMAP); |
| 43 | | memory_install_write8_handler(space, i*0x1000, ((i+1)*0x1000)-1, 0, 0, SMH_UNMAP); |
| 89 | UINT16 startaddr = block*0x1000; |
| 90 | UINT16 endaddr = ((block+1)*0x1000)-1; |
| 91 | UINT8 blocknum = block + 1; |
| 92 | if (data>=0xE0 && data<=0xEF) { |
| 93 | // This is RAM |
| 94 | memory_install_read8_handler (space, startaddr, endaddr, 0, 0, SMH_BANK(blocknum)); |
| 95 | switch(data) { |
| 96 | case 0xe6 : |
| 97 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, pp01_video_r_1_w); |
| 98 | break; |
| 99 | case 0xe7 : |
| 100 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, pp01_video_r_2_w); |
| 101 | break; |
| 102 | case 0xea : |
| 103 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, pp01_video_g_1_w); |
| 104 | break; |
| 105 | case 0xeb : |
| 106 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, pp01_video_g_2_w); |
| 107 | break; |
| 108 | case 0xee : |
| 109 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, pp01_video_b_1_w); |
| 110 | break; |
| 111 | case 0xef : |
| 112 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, pp01_video_b_2_w); |
| 113 | break; |
| 114 | |
| 115 | default : |
| 116 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, SMH_BANK(blocknum)); |
| 117 | break; |
| 44 | 118 | } |
| 45 | | } |
| 119 | |
| 120 | memory_set_bankptr(machine, blocknum, mess_ram + (data & 0x0F)* 0x1000); |
| 121 | } else if (data>=0xF8) { |
| 122 | memory_install_read8_handler (space, startaddr, endaddr, 0, 0, SMH_BANK(blocknum)); |
| 123 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, SMH_UNMAP); |
| 124 | memory_set_bankptr(machine, blocknum, mem + ((data & 0x0F)-8)* 0x1000+0x10000); |
| 125 | } else { |
| 126 | logerror("%02x %02x\n",block,data); |
| 127 | memory_install_read8_handler (space, startaddr, endaddr, 0, 0, SMH_UNMAP); |
| 128 | memory_install_write8_handler(space, startaddr, endaddr, 0, 0, SMH_UNMAP); |
| 129 | } |
| 46 | 130 | } |
| 47 | 131 | |
| 48 | 132 | MACHINE_RESET( pp01 ) |
| 49 | 133 | { |
| 134 | int i; |
| 50 | 135 | memset(memory_block,0xff,16); |
| 51 | | pp01_set_memory(machine); |
| 136 | for(i=0;i<16;i++) { |
| 137 | memory_block[i] = 0xff; |
| 138 | pp01_set_memory(machine, i, 0xff); |
| 139 | } |
| 52 | 140 | } |
| 53 | 141 | |
| 54 | 142 | WRITE8_HANDLER (pp01_mem_block_w) |
| 55 | 143 | { |
| 56 | 144 | memory_block[offset] = data; |
| 57 | | pp01_set_memory(space->machine); |
| 145 | pp01_set_memory(space->machine, offset, data); |
| 58 | 146 | } |
| 59 | 147 | |
| 148 | READ8_HANDLER (pp01_mem_block_r) |
| 149 | { |
| 150 | return memory_block[offset]; |
| 151 | } |
| 152 | |
| 60 | 153 | MACHINE_START(pp01) |
| 61 | 154 | { |
| 62 | 155 | } |
| r4836 | r4837 | |
| 103 | 196 | pp01_video_scroll = data; |
| 104 | 197 | } |
| 105 | 198 | |
| 199 | UINT8 pp01_key_line = 0; |
| 106 | 200 | static READ8_DEVICE_HANDLER (pp01_8255_portb_r ) |
| 107 | 201 | { |
| 108 | | return 0xff; |
| 202 | static const char *const keynames[] = { "LINE0", "LINE1", "LINE2", "LINE3", "LINE4", "LINE5", "LINE6", "LINE7", |
| 203 | "LINE8", "LINE9", "LINEA", "LINEB", "LINEC", "LINED", "LINEE", "LINEF" }; |
| 204 | |
| 205 | return (input_port_read(device->machine,keynames[pp01_key_line]) & 0x3F) | (input_port_read(device->machine,"LINEALL") & 0xC0); |
| 109 | 206 | } |
| 110 | 207 | static WRITE8_DEVICE_HANDLER (pp01_8255_portb_w ) |
| 111 | 208 | { |
| 112 | | logerror("pp01_8255_portb_w %02x\n",data); |
| 209 | //logerror("pp01_8255_portb_w %02x\n",data); |
| 210 | |
| 113 | 211 | } |
| 114 | 212 | |
| 115 | 213 | static WRITE8_DEVICE_HANDLER (pp01_8255_portc_w ) |
| 116 | 214 | { |
| 117 | | logerror("pp01_8255_portb_w %02x\n",data); |
| 215 | pp01_key_line = data & 0x0f; |
| 118 | 216 | } |
| 119 | 217 | |
| 120 | 218 | static READ8_DEVICE_HANDLER (pp01_8255_portc_r ) |
src/mess/drivers/pp01.c
| r4836 | r4837 | |
| 34 | 34 | |
| 35 | 35 | static ADDRESS_MAP_START( pp01_io, ADDRESS_SPACE_IO, 8 ) |
| 36 | 36 | AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w) |
| 37 | //AM_RANGE(0xc4, 0xc7) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w) |
| 38 | AM_RANGE(0xcc, 0xcf) AM_WRITE(pp01_video_write_mode_w) |
| 37 | 39 | AM_RANGE(0xd0, 0xd3) AM_DEVREADWRITE("pit8253", pit8253_r, pit8253_w) |
| 38 | | AM_RANGE(0xe0, 0xef) AM_WRITE(pp01_mem_block_w) |
| 39 | | AM_RANGE(0xf0, 0xff) AM_WRITE(pp01_mem_block_w) |
| 40 | AM_RANGE(0xe0, 0xef) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w) |
| 41 | AM_RANGE(0xf0, 0xff) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w) |
| 40 | 42 | ADDRESS_MAP_END |
| 41 | 43 | |
| 42 | 44 | /* Input ports */ |
| 43 | 45 | static INPUT_PORTS_START( pp01 ) |
| 44 | 46 | PORT_START("LINE0") |
| 45 | | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) |
| 46 | | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 47 | | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 48 | | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) |
| 49 | | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) |
| 50 | | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) |
| 51 | | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) |
| 52 | | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("F7") PORT_CODE(KEYCODE_F7) |
| 53 | | |
| 47 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) |
| 48 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Home") PORT_CODE(KEYCODE_HOME) |
| 49 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 0") PORT_CODE(KEYCODE_0_PAD) |
| 50 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) |
| 51 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED) |
| 52 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) |
| 53 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 54 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 55 | PORT_START("LINE1") |
| 56 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 57 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 58 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 1") PORT_CODE(KEYCODE_1_PAD) |
| 59 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 60 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 61 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) |
| 62 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 63 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 64 | PORT_START("LINE2") |
| 65 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) |
| 66 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) |
| 67 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 2") PORT_CODE(KEYCODE_2_PAD) |
| 68 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) |
| 69 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) |
| 70 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) |
| 71 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 72 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 73 | PORT_START("LINE3") |
| 74 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) |
| 75 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) |
| 76 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 3") PORT_CODE(KEYCODE_3_PAD) |
| 77 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) |
| 78 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) |
| 79 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) |
| 80 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 81 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 82 | PORT_START("LINE4") |
| 83 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F7") PORT_CODE(KEYCODE_F7) |
| 84 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F8") PORT_CODE(KEYCODE_F8) |
| 85 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 4") PORT_CODE(KEYCODE_4_PAD) |
| 86 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 87 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) |
| 88 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 89 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 90 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 91 | PORT_START("LINE5") |
| 92 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F9") PORT_CODE(KEYCODE_F9) |
| 93 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F10") PORT_CODE(KEYCODE_F10) |
| 94 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 5") PORT_CODE(KEYCODE_5_PAD) |
| 95 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 96 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) |
| 97 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) |
| 98 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 99 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 100 | PORT_START("LINE6") |
| 101 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F11") PORT_CODE(KEYCODE_F11) |
| 102 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F12") PORT_CODE(KEYCODE_F12) |
| 103 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 6") PORT_CODE(KEYCODE_6_PAD) |
| 104 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 105 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) |
| 106 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) |
| 107 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 108 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 109 | PORT_START("LINE7") |
| 110 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F13") PORT_CODE(KEYCODE_PGUP) |
| 111 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F14") PORT_CODE(KEYCODE_PGDN) |
| 112 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 7") PORT_CODE(KEYCODE_7_PAD) |
| 113 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7) |
| 114 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) |
| 115 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) |
| 116 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 117 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 118 | PORT_START("LINE8") |
| 119 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Backspace") PORT_CODE(KEYCODE_BACKSPACE) |
| 120 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Delete line") PORT_CODE(KEYCODE_TILDE) |
| 121 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 8") PORT_CODE(KEYCODE_8_PAD) |
| 122 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8) |
| 123 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) |
| 124 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) |
| 125 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 126 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 127 | PORT_START("LINE9") |
| 128 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
| 129 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num +") PORT_CODE(KEYCODE_PLUS_PAD) |
| 130 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 9") PORT_CODE(KEYCODE_9_PAD) |
| 131 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) |
| 132 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) |
| 133 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) |
| 134 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 135 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 136 | PORT_START("LINEA") |
| 137 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
| 138 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 139 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 140 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_COLON) |
| 141 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) |
| 142 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) |
| 143 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 144 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 145 | PORT_START("LINEB") |
| 146 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
| 147 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 148 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 149 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(";") PORT_CODE(KEYCODE_COLON) |
| 150 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) |
| 151 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE) |
| 152 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 153 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 154 | PORT_START("LINEC") |
| 155 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num *") PORT_CODE(KEYCODE_ASTERISK) |
| 156 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num -") PORT_CODE(KEYCODE_MINUS_PAD) |
| 157 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 158 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(",") PORT_CODE(KEYCODE_COMMA) |
| 159 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) |
| 160 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\\") PORT_CODE(KEYCODE_BACKSLASH) |
| 161 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 162 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 163 | PORT_START("LINED") |
| 164 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) |
| 165 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 166 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 167 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) |
| 168 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 169 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) |
| 170 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 171 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 172 | PORT_START("LINEE") |
| 173 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num /") PORT_CODE(KEYCODE_SLASH_PAD) |
| 174 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 175 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num .") PORT_CODE(KEYCODE_DEL_PAD) |
| 176 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_STOP) |
| 177 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) |
| 178 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("^") PORT_CODE(KEYCODE_TILDE) |
| 179 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 180 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 181 | PORT_START("LINEF") |
| 182 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Backspace") PORT_CODE(KEYCODE_BACKSPACE) |
| 183 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 184 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 185 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH) |
| 186 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) |
| 187 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("_") PORT_CODE(KEYCODE_TILDE) |
| 188 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
| 189 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
| 190 | PORT_START("LINEALL") |
| 191 | PORT_BIT(0x3F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 192 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(KEYCODE_RCONTROL) |
| 193 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) |
| 54 | 194 | INPUT_PORTS_END |
| 55 | 195 | |
| 56 | 196 | /* Machine driver */ |