src/mess/includes/bbc.h
| r11839 | r11840 | |
| 41 | 41 | int m_vdusel; // BBC B+ memory handling |
| 42 | 42 | |
| 43 | 43 | /* |
| 44 | | ACCCON |
| 44 | ACCCON |
| 45 | 45 | |
| 46 | | b7 IRR 1=Causes an IRQ to the processor |
| 47 | | b6 TST 1=Selects &FC00-&FEFF read from OS-ROM |
| 48 | | b5 IFJ 1=Internal 1 MHz bus |
| 49 | | 0=External 1MHz bus |
| 50 | | b4 ITU 1=Internal Tube |
| 51 | | 0=External Tube |
| 52 | | b3 Y 1=Read/Write HAZEL &C000-&DFFF RAM |
| 53 | | 0=Read/Write ROM &C000-&DFFF OS-ROM |
| 54 | | b2 X 1=Read/Write LYNNE |
| 55 | | 0=Read/WRITE main memory &3000-&8000 |
| 56 | | b1 E 1=Causes shadow if VDU code |
| 57 | | 0=Main all the time |
| 58 | | b0 D 1=Display LYNNE as screen |
| 59 | | 0=Display main RAM screen |
| 46 | b7 IRR 1=Causes an IRQ to the processor |
| 47 | b6 TST 1=Selects &FC00-&FEFF read from OS-ROM |
| 48 | b5 IFJ 1=Internal 1 MHz bus |
| 49 | 0=External 1MHz bus |
| 50 | b4 ITU 1=Internal Tube |
| 51 | 0=External Tube |
| 52 | b3 Y 1=Read/Write HAZEL &C000-&DFFF RAM |
| 53 | 0=Read/Write ROM &C000-&DFFF OS-ROM |
| 54 | b2 X 1=Read/Write LYNNE |
| 55 | 0=Read/WRITE main memory &3000-&8000 |
| 56 | b1 E 1=Causes shadow if VDU code |
| 57 | 0=Main all the time |
| 58 | b0 D 1=Display LYNNE as screen |
| 59 | 0=Display main RAM screen |
| 60 | 60 | |
| 61 | | ACCCON is a read/write register |
| 62 | | */ |
| 61 | ACCCON is a read/write register |
| 62 | */ |
| 63 | 63 | |
| 64 | 64 | int m_ACCCON; |
| 65 | 65 | int m_ACCCON_TST; |
| r11839 | r11840 | |
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | /* |
| 75 | | The addressable latch |
| 76 | | This 8 bit addressable latch is operated from port B lines 0-3. |
| 77 | | PB0-PB2 are set to the required address of the output bit to be set. |
| 78 | | PB3 is set to the value which should be programmed at that bit. |
| 79 | | The function of the 8 output bits from this latch are:- |
| 75 | The addressable latch |
| 76 | This 8 bit addressable latch is operated from port B lines 0-3. |
| 77 | PB0-PB2 are set to the required address of the output bit to be set. |
| 78 | PB3 is set to the value which should be programmed at that bit. |
| 79 | The function of the 8 output bits from this latch are:- |
| 80 | 80 | |
| 81 | | B0 - Write Enable to the sound generator IC |
| 82 | | B1 - READ select on the speech processor |
| 83 | | B2 - WRITE select on the speech processor |
| 84 | | B3 - Keyboard write enable |
| 85 | | B4,B5 - these two outputs define the number to be added to the |
| 86 | | start of screen address in hardware to control hardware scrolling:- |
| 87 | | Mode Size Start of screen Number to add B5 B4 |
| 88 | | 0,1,2 20K &3000 12K 1 1 |
| 89 | | 3 16K &4000 16K 0 0 |
| 90 | | 4,5 10K &5800 (or &1800) 22K 1 0 |
| 91 | | 6 8K &6000 (or &2000) 24K 0 1 |
| 92 | | B6 - Operates the CAPS lock LED (Pin 17 keyboard connector) |
| 93 | | B7 - Operates the SHIFT lock LED (Pin 16 keyboard connector) |
| 94 | | */ |
| 81 | B0 - Write Enable to the sound generator IC |
| 82 | B1 - READ select on the speech processor |
| 83 | B2 - WRITE select on the speech processor |
| 84 | B3 - Keyboard write enable |
| 85 | B4,B5 - these two outputs define the number to be added to the |
| 86 | start of screen address in hardware to control hardware scrolling:- |
| 87 | Mode Size Start of screen Number to add B5 B4 |
| 88 | 0,1,2 20K &3000 12K 1 1 |
| 89 | 3 16K &4000 16K 0 0 |
| 90 | 4,5 10K &5800 (or &1800) 22K 1 0 |
| 91 | 6 8K &6000 (or &2000) 24K 0 1 |
| 92 | B6 - Operates the CAPS lock LED (Pin 17 keyboard connector) |
| 93 | B7 - Operates the SHIFT lock LED (Pin 16 keyboard connector) |
| 94 | */ |
| 95 | 95 | |
| 96 | 96 | int m_b0_sound; |
| 97 | 97 | int m_b1_speech_read; |
| r11839 | r11840 | |
| 110 | 110 | int m_via_system_porta; |
| 111 | 111 | |
| 112 | 112 | int m_column; // this is a counter in the keyboard circuit |
| 113 | | |
| 114 | 113 | |
| 114 | |
| 115 | 115 | /*************************************** |
| 116 | | BBC 2C199 Serial Interface Cassette |
| 117 | | ****************************************/ |
| 116 | BBC 2C199 Serial Interface Cassette |
| 117 | ****************************************/ |
| 118 | 118 | |
| 119 | 119 | double m_last_dev_val; |
| 120 | 120 | int m_wav_len; |
| r11839 | r11840 | |
| 127 | 127 | |
| 128 | 128 | |
| 129 | 129 | /************************************** |
| 130 | | i8271 disc control |
| 131 | | ***************************************/ |
| 130 | i8271 disc control |
| 131 | ***************************************/ |
| 132 | 132 | |
| 133 | 133 | int m_previous_i8271_int_state; // 8271 interupt status |
| 134 | 134 | |
| 135 | 135 | |
| 136 | 136 | |
| 137 | 137 | /************************************** |
| 138 | | WD1770 disc control |
| 139 | | ***************************************/ |
| 138 | WD1770 disc control |
| 139 | ***************************************/ |
| 140 | 140 | int m_drive_control; |
| 141 | 141 | int m_wd177x_irq_state; |
| 142 | 142 | int m_wd177x_drq_state; |
| r11839 | r11840 | |
| 144 | 144 | int m_1770_IntEnabled; |
| 145 | 145 | |
| 146 | 146 | /************************************** |
| 147 | | Opus Challenger Disc control |
| 148 | | ***************************************/ |
| 147 | Opus Challenger Disc control |
| 148 | ***************************************/ |
| 149 | 149 | int m_opusbank; |
| 150 | 150 | |
| 151 | 151 | |
| 152 | 152 | |
| 153 | 153 | /************************************** |
| 154 | | Video Code |
| 155 | | ***************************************/ |
| 154 | Video Code |
| 155 | ***************************************/ |
| 156 | 156 | |
| 157 | 157 | int m_memorySize; |
| 158 | 158 | |
| r11839 | r11840 | |
| 190 | 190 | int m_videoULA_characters_per_line; |
| 191 | 191 | int m_videoULA_teletext_normal_select; |
| 192 | 192 | int m_videoULA_flash_colour_select; |
| 193 | | |
| 194 | | |
| 195 | | |
| 193 | |
| 194 | |
| 195 | |
| 196 | 196 | int m_pixels_per_byte; |
| 197 | 197 | int m_emulation_pixels_per_real_pixel; |
| 198 | 198 | int m_emulation_pixels_per_byte; |
| 199 | | |
| 199 | |
| 200 | 200 | int m_emulation_cursor_size; |
| 201 | 201 | int m_cursor_state; |
| 202 | | |
| 202 | |
| 203 | 203 | int m_videoULA_pallet0[16]; |
| 204 | 204 | int m_videoULA_pallet1[16]; |
| 205 | 205 | int *m_videoULA_pallet_lookup; |
| 206 | | |
| 206 | |
| 207 | 207 | void (*m_draw_function)(running_machine &machine); |
| 208 | 208 | }; |
| 209 | 209 | |
src/mess/video/bbc.c
| r11839 | r11840 | |
| 6 | 6 | Gordon Jefferyes |
| 7 | 7 | mess_bbc@romvault.com |
| 8 | 8 | |
| 9 | | This is the first go around at converting the BBC code over to using |
| 10 | | mames built in mc6845, there are a number of features now incorrect |
| 11 | | or missing in this build: |
| 12 | | |
| 13 | | Cursors are missing. |
| 14 | | Mode 7 is shifted to the right by a couple of character. |
| 15 | | BBC split modes no longer work (Like is used in Elite.) |
| 9 | This is the first go around at converting the BBC code over to using |
| 10 | mames built in mc6845, there are a number of features now incorrect |
| 11 | or missing in this build: |
| 16 | 12 | |
| 13 | Cursors are missing. |
| 14 | Mode 7 is shifted to the right by a couple of character. |
| 15 | BBC split modes no longer work (Like is used in Elite.) |
| 16 | |
| 17 | 17 | ******************************************************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "emu.h" |
| r11839 | r11840 | |
| 149 | 149 | mc6845->set_hpixels_per_column(state->m_pixels_per_byte); |
| 150 | 150 | if (state->m_videoULA_6845_clock_rate) |
| 151 | 151 | mc6845->set_clock(2000000); |
| 152 | | else |
| 152 | else |
| 153 | 153 | mc6845->set_clock(1000000); |
| 154 | 154 | } |
| 155 | 155 | break; |
| r11839 | r11840 | |
| 168 | 168 | /* |
| 169 | 169 | static void set_cursor(bbc_state *state) |
| 170 | 170 | { |
| 171 | | state->m_cursor_state=state->m_VideoULA_CR?0:7; |
| 171 | state->m_cursor_state=state->m_VideoULA_CR?0:7; |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | static void BBC_Clock_CR(bbc_state *state) |
| 175 | 175 | { |
| 176 | | if (state->m_VideoULA_CR) |
| 177 | | { |
| 178 | | state->m_VideoULA_CR_counter-=1; |
| 179 | | if (state->m_VideoULA_CR_counter<=0) { |
| 180 | | state->m_VideoULA_CR=0; |
| 181 | | set_cursor(state); |
| 182 | | } |
| 183 | | } |
| 176 | if (state->m_VideoULA_CR) |
| 177 | { |
| 178 | state->m_VideoULA_CR_counter-=1; |
| 179 | if (state->m_VideoULA_CR_counter<=0) { |
| 180 | state->m_VideoULA_CR=0; |
| 181 | set_cursor(state); |
| 182 | } |
| 183 | } |
| 184 | 184 | } |
| 185 | 185 | */ |
| 186 | 186 | /************************************************************************ |
| r11839 | r11840 | |
| 199 | 199 | |
| 200 | 200 | if (state->m_videoULA_teletext_normal_select) |
| 201 | 201 | { |
| 202 | | |
| 202 | |
| 203 | 203 | teletext_LOSE_w(state->m_saa505x, 0,0); |
| 204 | 204 | teletext_LOSE_w(state->m_saa505x, 0,1); |
| 205 | 205 | |
| r11839 | r11840 | |
| 225 | 225 | for(int pixelno=0;pixelno<6;pixelno++) |
| 226 | 226 | { |
| 227 | 227 | int col=returned_pixels[pixelno]; |
| 228 | | |
| 228 | |
| 229 | 229 | *BITMAP_ADDR16(bitmap, y, (x_pos*state->m_pixels_per_byte)+pixelno)=col; |
| 230 | 230 | } |
| 231 | 231 | |
| r11839 | r11840 | |
| 418 | 418 | |
| 419 | 419 | static void BBC_draw_teletext(running_machine &machine) |
| 420 | 420 | { |
| 421 | | bbc_state *state = machine.driver_data<bbc_state>(); |
| 421 | bbc_state *state = machine.driver_data<bbc_state>(); |
| 422 | 422 | |
| 423 | | //Teletext Latch bits 0 to 5 go to bits 0 to 5 on the Teletext chip |
| 424 | | //Teletext Latch bit 6 is only passed onto bits 6 on the Teletext chip if DE is true |
| 425 | | //Teletext Latch bit 7 goes to LOSE on the Teletext chip |
| 423 | //Teletext Latch bits 0 to 5 go to bits 0 to 5 on the Teletext chip |
| 424 | //Teletext Latch bit 6 is only passed onto bits 6 on the Teletext chip if DE is true |
| 425 | //Teletext Latch bit 7 goes to LOSE on the Teletext chip |
| 426 | 426 | |
| 427 | | teletext_LOSE_w(state->m_saa505x, 0, (state->m_Teletext_Latch>>7)&1); |
| 427 | teletext_LOSE_w(state->m_saa505x, 0, (state->m_Teletext_Latch>>7)&1); |
| 428 | 428 | |
| 429 | | teletext_F1(state->m_saa505x); |
| 429 | teletext_F1(state->m_saa505x); |
| 430 | 430 | |
| 431 | | teletext_data_w(state->m_saa505x, 0, (state->m_Teletext_Latch&0x3f)|((state->m_Teletext_Latch&0x40)|(m6845_display_enabled_r(0)?0:0x40))); |
| 431 | teletext_data_w(state->m_saa505x, 0, (state->m_Teletext_Latch&0x3f)|((state->m_Teletext_Latch&0x40)|(m6845_display_enabled_r(0)?0:0x40))); |
| 432 | 432 | |
| 433 | | int meml=m6845_memory_address_r(0); |
| 433 | int meml=m6845_memory_address_r(0); |
| 434 | 434 | |
| 435 | | if (((meml>>13)&1)==0) |
| 436 | | { |
| 437 | | state->m_Teletext_Latch=0; |
| 438 | | } else { |
| 439 | | state->m_Teletext_Latch=(state->m_BBC_Video_RAM[calculate_video_address(state,meml)]&0x7f)|(m6845_display_enabled_r(0)?0x80:0); |
| 440 | | } |
| 435 | if (((meml>>13)&1)==0) |
| 436 | { |
| 437 | state->m_Teletext_Latch=0; |
| 438 | } else { |
| 439 | state->m_Teletext_Latch=(state->m_BBC_Video_RAM[calculate_video_address(state,meml)]&0x7f)|(m6845_display_enabled_r(0)?0x80:0); |
| 440 | } |
| 441 | 441 | |
| 442 | 442 | } |
| 443 | 443 | |
| r11839 | r11840 | |
| 449 | 449 | |
| 450 | 450 | static void BBC_ula_drawpixel(bbc_state *state, int col, int number_of_pixels) |
| 451 | 451 | { |
| 452 | | int pixel_count; |
| 453 | | int pixel_temp; |
| 454 | | if ((state->m_BBC_display>=state->m_BBC_display_left) && ((state->m_BBC_display+number_of_pixels)<state->m_BBC_display_right)) |
| 455 | | { |
| 452 | int pixel_count; |
| 453 | int pixel_temp; |
| 454 | if ((state->m_BBC_display>=state->m_BBC_display_left) && ((state->m_BBC_display+number_of_pixels)<state->m_BBC_display_right)) |
| 455 | { |
| 456 | 456 | |
| 457 | | pixel_temp=col^state->m_cursor_state; |
| 458 | | for(pixel_count=0;pixel_count<number_of_pixels;pixel_count++) |
| 459 | | { |
| 460 | | *(state->m_BBC_display++) = pixel_temp; |
| 461 | | } |
| 462 | | } else { |
| 463 | | state->m_BBC_display += number_of_pixels; |
| 464 | | } |
| 457 | pixel_temp=col^state->m_cursor_state; |
| 458 | for(pixel_count=0;pixel_count<number_of_pixels;pixel_count++) |
| 459 | { |
| 460 | *(state->m_BBC_display++) = pixel_temp; |
| 461 | } |
| 462 | } else { |
| 463 | state->m_BBC_display += number_of_pixels; |
| 464 | } |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | |
| r11839 | r11840 | |
| 473 | 473 | |
| 474 | 474 | static const struct m6845_interface BBC6845 = |
| 475 | 475 | { |
| 476 | | 0,// Memory Address register |
| 477 | | 0,// Row Address register |
| 478 | | BBC_Set_HSync,// Horizontal status |
| 479 | | BBC_Set_VSync,// Vertical status |
| 480 | | 0,// Display Enabled status |
| 481 | | 0,// Cursor status |
| 482 | | BBC_Set_CRE, // Cursor status Emulation |
| 476 | 0,// Memory Address register |
| 477 | 0,// Row Address register |
| 478 | BBC_Set_HSync,// Horizontal status |
| 479 | BBC_Set_VSync,// Vertical status |
| 480 | 0,// Display Enabled status |
| 481 | 0,// Cursor status |
| 482 | BBC_Set_CRE, // Cursor status Emulation |
| 483 | 483 | }; |
| 484 | 484 | |
| 485 | 485 | |
| 486 | 486 | |
| 487 | 487 | static void BBC_draw_hi_res(running_machine &machine) |
| 488 | 488 | { |
| 489 | | bbc_state *state = machine.driver_data<bbc_state>(); |
| 490 | | int meml; |
| 491 | | unsigned char i=0; |
| 492 | | int sc1; |
| 489 | bbc_state *state = machine.driver_data<bbc_state>(); |
| 490 | int meml; |
| 491 | unsigned char i=0; |
| 492 | int sc1; |
| 493 | 493 | |
| 494 | | // this is IC38 and IC41 takes 6845 DisplayEnabled and 6845 RA3 |
| 495 | | int DE=m6845_display_enabled_r(0) && (!(m6845_row_address_r(0)&8)); |
| 494 | // this is IC38 and IC41 takes 6845 DisplayEnabled and 6845 RA3 |
| 495 | int DE=m6845_display_enabled_r(0) && (!(m6845_row_address_r(0)&8)); |
| 496 | 496 | |
| 497 | | if (DE) |
| 498 | | { |
| 499 | | // read the memory location for the next screen location. |
| 500 | | meml=calculate_video_address(state,m6845_memory_address_r(0)); |
| 497 | if (DE) |
| 498 | { |
| 499 | // read the memory location for the next screen location. |
| 500 | meml=calculate_video_address(state,m6845_memory_address_r(0)); |
| 501 | 501 | |
| 502 | | i=state->m_BBC_Video_RAM[meml]; |
| 502 | i=state->m_BBC_Video_RAM[meml]; |
| 503 | 503 | |
| 504 | | for(sc1=0;sc1<state->m_pixels_per_byte;sc1++) |
| 505 | | { |
| 506 | | BBC_ula_drawpixel(state, state->m_videoULA_pallet_lookup[state->m_pixel_bits[i]], state->m_emulation_pixels_per_real_pixel); |
| 507 | | i=(i<<1)|1; |
| 508 | | } |
| 504 | for(sc1=0;sc1<state->m_pixels_per_byte;sc1++) |
| 505 | { |
| 506 | BBC_ula_drawpixel(state, state->m_videoULA_pallet_lookup[state->m_pixel_bits[i]], state->m_emulation_pixels_per_real_pixel); |
| 507 | i=(i<<1)|1; |
| 508 | } |
| 509 | 509 | |
| 510 | | } else { |
| 511 | | // if the display is not enable, just draw a blank area. |
| 512 | | BBC_ula_drawpixel(state, 0, state->m_emulation_pixels_per_byte); |
| 513 | | } |
| 510 | } else { |
| 511 | // if the display is not enable, just draw a blank area. |
| 512 | BBC_ula_drawpixel(state, 0, state->m_emulation_pixels_per_byte); |
| 513 | } |
| 514 | 514 | } |
| 515 | 515 | |
| 516 | 516 | |
| r11839 | r11840 | |
| 518 | 518 | // Just pass on the output at the correct pixel size. |
| 519 | 519 | void bbc_draw_RGB_in(device_t *device, int offset,int data) |
| 520 | 520 | { |
| 521 | | bbc_state *state = device->machine().driver_data<bbc_state>(); |
| 522 | | BBC_ula_drawpixel(state, data, state->m_emulation_pixels_per_real_pixel); |
| 521 | bbc_state *state = device->machine().driver_data<bbc_state>(); |
| 522 | BBC_ula_drawpixel(state, data, state->m_emulation_pixels_per_real_pixel); |
| 523 | 523 | } |
| 524 | 524 | |
| 525 | 525 | |
| r11839 | r11840 | |
| 530 | 530 | // called when the 6845 changes the HSync |
| 531 | 531 | static void BBC_Set_HSync(running_machine &machine, int offset, int data) |
| 532 | 532 | { |
| 533 | | bbc_state *state = machine.driver_data<bbc_state>(); |
| 534 | | // catch the falling edge |
| 535 | | if((!data)&&(state->m_BBC_HSync)) |
| 536 | | { |
| 537 | | state->m_y_screen_pos+=1; |
| 533 | bbc_state *state = machine.driver_data<bbc_state>(); |
| 534 | // catch the falling edge |
| 535 | if((!data)&&(state->m_BBC_HSync)) |
| 536 | { |
| 537 | state->m_y_screen_pos+=1; |
| 538 | 538 | |
| 539 | | if ((state->m_y_screen_pos>=0) && (state->m_y_screen_pos<300)) |
| 540 | | { |
| 541 | | state->m_BBC_display_left = BITMAP_ADDR16(state->m_BBC_bitmap, state->m_y_screen_pos, 0); |
| 542 | | state->m_BBC_display_right = state->m_BBC_display_left + 800; |
| 539 | if ((state->m_y_screen_pos>=0) && (state->m_y_screen_pos<300)) |
| 540 | { |
| 541 | state->m_BBC_display_left = BITMAP_ADDR16(state->m_BBC_bitmap, state->m_y_screen_pos, 0); |
| 542 | state->m_BBC_display_right = state->m_BBC_display_left + 800; |
| 543 | 543 | |
| 544 | | } else { |
| 545 | | state->m_BBC_display_left = BITMAP_ADDR16(state->m_BBC_bitmap, 0, 0); |
| 546 | | state->m_BBC_display_right = state->m_BBC_display_left; |
| 547 | | } |
| 544 | } else { |
| 545 | state->m_BBC_display_left = BITMAP_ADDR16(state->m_BBC_bitmap, 0, 0); |
| 546 | state->m_BBC_display_right = state->m_BBC_display_left; |
| 547 | } |
| 548 | 548 | |
| 549 | | state->m_BBC_display = state->m_BBC_display_left + state->m_x_screen_offset; |
| 549 | state->m_BBC_display = state->m_BBC_display_left + state->m_x_screen_offset; |
| 550 | 550 | |
| 551 | | } |
| 552 | | state->m_BBC_HSync=data; |
| 551 | } |
| 552 | state->m_BBC_HSync=data; |
| 553 | 553 | } |
| 554 | 554 | |
| 555 | 555 | // called when the 6845 changes the VSync |
| 556 | 556 | static void BBC_Set_VSync(running_machine &machine, int offset, int data) |
| 557 | 557 | { |
| 558 | | bbc_state *state = machine.driver_data<bbc_state>(); |
| 559 | | // catch the falling edge |
| 560 | | if ((!data)&&(state->m_BBC_VSync)) |
| 561 | | { |
| 562 | | state->m_y_screen_pos=state->m_y_screen_offset; |
| 558 | bbc_state *state = machine.driver_data<bbc_state>(); |
| 559 | // catch the falling edge |
| 560 | if ((!data)&&(state->m_BBC_VSync)) |
| 561 | { |
| 562 | state->m_y_screen_pos=state->m_y_screen_offset; |
| 563 | 563 | |
| 564 | | if ((state->m_y_screen_pos>=0) && (state->m_y_screen_pos<300)) |
| 565 | | { |
| 566 | | state->m_BBC_display_left = BITMAP_ADDR16(state->m_BBC_bitmap, state->m_y_screen_pos, 0); |
| 567 | | state->m_BBC_display_right = state->m_BBC_display_left + 800; |
| 564 | if ((state->m_y_screen_pos>=0) && (state->m_y_screen_pos<300)) |
| 565 | { |
| 566 | state->m_BBC_display_left = BITMAP_ADDR16(state->m_BBC_bitmap, state->m_y_screen_pos, 0); |
| 567 | state->m_BBC_display_right = state->m_BBC_display_left + 800; |
| 568 | 568 | |
| 569 | | } else { |
| 570 | | state->m_BBC_display_left = BITMAP_ADDR16(state->m_BBC_bitmap, 0, 0); |
| 571 | | state->m_BBC_display_right = state->m_BBC_display_left; |
| 572 | | } |
| 569 | } else { |
| 570 | state->m_BBC_display_left = BITMAP_ADDR16(state->m_BBC_bitmap, 0, 0); |
| 571 | state->m_BBC_display_right = state->m_BBC_display_left; |
| 572 | } |
| 573 | 573 | |
| 574 | | state->m_BBC_display = state->m_BBC_display_left + state->m_x_screen_offset; |
| 574 | state->m_BBC_display = state->m_BBC_display_left + state->m_x_screen_offset; |
| 575 | 575 | |
| 576 | | teletext_DEW(state->m_saa505x); |
| 577 | | } |
| 578 | | state->m_BBC_VSync=data; |
| 576 | teletext_DEW(state->m_saa505x); |
| 577 | } |
| 578 | state->m_BBC_VSync=data; |
| 579 | 579 | |
| 580 | 580 | } |
| 581 | 581 | |
| 582 | 582 | // called when the 6845 changes the Cursor Enabled |
| 583 | 583 | static void BBC_Set_CRE(running_machine &machine, int offset, int data) |
| 584 | 584 | { |
| 585 | | bbc_state *state = machine.driver_data<bbc_state>(); |
| 586 | | if (data&2) { |
| 587 | | state->m_VideoULA_CR_counter=state->m_emulation_cursor_size; |
| 588 | | state->m_VideoULA_CR=1; |
| 589 | | // set the pallet on |
| 590 | | if (data&1) set_cursor(state); |
| 591 | | } |
| 585 | bbc_state *state = machine.driver_data<bbc_state>(); |
| 586 | if (data&2) { |
| 587 | state->m_VideoULA_CR_counter=state->m_emulation_cursor_size; |
| 588 | state->m_VideoULA_CR=1; |
| 589 | // set the pallet on |
| 590 | if (data&1) set_cursor(state); |
| 591 | } |
| 592 | 592 | } |
| 593 | 593 | |
| 594 | 594 | |
| r11839 | r11840 | |
| 597 | 597 | |
| 598 | 598 | WRITE8_HANDLER ( bbc_6845_w ) |
| 599 | 599 | { |
| 600 | | mc6845_device *mc6845 = space->machine().device<mc6845_device>("mc6845"); |
| 601 | | switch(offset & 1) |
| 602 | | { |
| 603 | | case 0 : |
| 604 | | mc6845->address_w(*space,0,data); |
| 605 | | break; |
| 606 | | case 1 : |
| 607 | | mc6845->register_w(*space,0,data); |
| 608 | | break; |
| 609 | | } |
| 610 | | return; |
| 600 | mc6845_device *mc6845 = space->machine().device<mc6845_device>("mc6845"); |
| 601 | switch(offset & 1) |
| 602 | { |
| 603 | case 0 : |
| 604 | mc6845->address_w(*space,0,data); |
| 605 | break; |
| 606 | case 1 : |
| 607 | mc6845->register_w(*space,0,data); |
| 608 | break; |
| 609 | } |
| 610 | return; |
| 611 | 611 | |
| 612 | | switch (offset&1) |
| 613 | | { |
| 614 | | case 0: |
| 615 | | m6845_address_w(0,data); |
| 616 | | break; |
| 617 | | case 1: |
| 618 | | m6845_register_w(0,data); |
| 619 | | break; |
| 620 | | } |
| 612 | switch (offset&1) |
| 613 | { |
| 614 | case 0: |
| 615 | m6845_address_w(0,data); |
| 616 | break; |
| 617 | case 1: |
| 618 | m6845_register_w(0,data); |
| 619 | break; |
| 620 | } |
| 621 | 621 | |
| 622 | 622 | } |
| 623 | 623 | |
| 624 | 624 | READ8_HANDLER (bbc_6845_r) |
| 625 | 625 | { |
| 626 | 626 | |
| 627 | | mc6845_device *mc6845 = space->machine().device<mc6845_device>("mc6845"); |
| 627 | mc6845_device *mc6845 = space->machine().device<mc6845_device>("mc6845"); |
| 628 | 628 | |
| 629 | | switch (offset&1) |
| 630 | | { |
| 631 | | case 0: return mc6845->status_r(*space,0); break; |
| 632 | | case 1: return mc6845->register_r(*space,0); break; |
| 633 | | } |
| 634 | | return 0; |
| 629 | switch (offset&1) |
| 630 | { |
| 631 | case 0: return mc6845->status_r(*space,0); break; |
| 632 | case 1: return mc6845->register_r(*space,0); break; |
| 633 | } |
| 634 | return 0; |
| 635 | 635 | |
| 636 | | int retval=0; |
| 636 | int retval=0; |
| 637 | 637 | |
| 638 | | switch (offset&1) |
| 639 | | { |
| 640 | | case 0: |
| 641 | | break; |
| 642 | | case 1: |
| 643 | | retval=m6845_register_r(0); |
| 644 | | break; |
| 645 | | } |
| 646 | | return retval; |
| 638 | switch (offset&1) |
| 639 | { |
| 640 | case 0: |
| 641 | break; |
| 642 | case 1: |
| 643 | retval=m6845_register_r(0); |
| 644 | break; |
| 645 | } |
| 646 | return retval; |
| 647 | 647 | } |
| 648 | 648 | |
| 649 | 649 | |
| r11839 | r11840 | |
| 653 | 653 | SCREEN_UPDATE( bbc ) |
| 654 | 654 | { |
| 655 | 655 | |
| 656 | | mc6845_device *mc6845 = screen->machine().device<mc6845_device>("mc6845"); |
| 657 | | mc6845->update( bitmap, cliprect); |
| 656 | mc6845_device *mc6845 = screen->machine().device<mc6845_device>("mc6845"); |
| 657 | mc6845->update( bitmap, cliprect); |
| 658 | 658 | |
| 659 | 659 | return 0; |
| 660 | 660 | |
| 661 | 661 | |
| 662 | 662 | |
| 663 | | bbc_state *state = screen->machine().driver_data<bbc_state>(); |
| 664 | | long c; |
| 663 | bbc_state *state = screen->machine().driver_data<bbc_state>(); |
| 664 | long c; |
| 665 | 665 | |
| 666 | | //logerror ("Box %d by %d \n",cliprect->min_y,cliprect->max_y); |
| 666 | //logerror ("Box %d by %d \n",cliprect->min_y,cliprect->max_y); |
| 667 | 667 | |
| 668 | | c = 0; // this is used to time out the screen redraw, in the case that the 6845 is in some way out state. |
| 668 | c = 0; // this is used to time out the screen redraw, in the case that the 6845 is in some way out state. |
| 669 | 669 | |
| 670 | 670 | |
| 671 | | state->m_BBC_bitmap=bitmap; |
| 671 | state->m_BBC_bitmap=bitmap; |
| 672 | 672 | |
| 673 | | state->m_BBC_display_left=BITMAP_ADDR16(state->m_BBC_bitmap, 0, 0); |
| 674 | | state->m_BBC_display_right=state->m_BBC_display_left; |
| 675 | | state->m_BBC_display=state->m_BBC_display_left; |
| 673 | state->m_BBC_display_left=BITMAP_ADDR16(state->m_BBC_bitmap, 0, 0); |
| 674 | state->m_BBC_display_right=state->m_BBC_display_left; |
| 675 | state->m_BBC_display=state->m_BBC_display_left; |
| 676 | 676 | |
| 677 | | // loop until the end of the Vertical Sync pulse |
| 678 | | // or until a timeout (this catches the 6845 with silly register values that would not give a VSYNC signal) |
| 679 | | while((state->m_BBC_VSync)&&(c<60000)) |
| 680 | | { |
| 681 | | // Clock the 6845 |
| 682 | | m6845_clock(screen->machine()); |
| 683 | | c++; |
| 684 | | } |
| 677 | // loop until the end of the Vertical Sync pulse |
| 678 | // or until a timeout (this catches the 6845 with silly register values that would not give a VSYNC signal) |
| 679 | while((state->m_BBC_VSync)&&(c<60000)) |
| 680 | { |
| 681 | // Clock the 6845 |
| 682 | m6845_clock(screen->machine()); |
| 683 | c++; |
| 684 | } |
| 685 | 685 | |
| 686 | 686 | |
| 687 | | // loop until the Vertical Sync pulse goes high |
| 688 | | // or until a timeout (this catches the 6845 with silly register values that would not give a VSYNC signal) |
| 689 | | while((!state->m_BBC_VSync)&&(c<60000)) |
| 690 | | { |
| 691 | | if ((state->m_y_screen_pos>=cliprect->min_y) && (state->m_y_screen_pos<=cliprect->max_y)) (state->m_draw_function)(screen->machine()); |
| 687 | // loop until the Vertical Sync pulse goes high |
| 688 | // or until a timeout (this catches the 6845 with silly register values that would not give a VSYNC signal) |
| 689 | while((!state->m_BBC_VSync)&&(c<60000)) |
| 690 | { |
| 691 | if ((state->m_y_screen_pos>=cliprect->min_y) && (state->m_y_screen_pos<=cliprect->max_y)) (state->m_draw_function)(screen->machine()); |
| 692 | 692 | |
| 693 | | // and check the cursor |
| 694 | | if (state->m_VideoULA_CR) BBC_Clock_CR(state); |
| 693 | // and check the cursor |
| 694 | if (state->m_VideoULA_CR) BBC_Clock_CR(state); |
| 695 | 695 | |
| 696 | | // Clock the 6845 |
| 697 | | m6845_clock(screen->machine()); |
| 698 | | c++; |
| 699 | | } |
| 696 | // Clock the 6845 |
| 697 | m6845_clock(screen->machine()); |
| 698 | c++; |
| 699 | } |
| 700 | 700 | |
| 701 | | return 0; |
| 701 | return 0; |
| 702 | 702 | } |
| 703 | 703 | |
| 704 | 704 | void bbc_frameclock(running_machine &machine) |
| 705 | 705 | { |
| 706 | | m6845_frameclock(); |
| 706 | m6845_frameclock(); |
| 707 | 707 | } |
| 708 | 708 | |
| 709 | | */ |
| | No newline at end of file |
| 709 | */ |
src/mess/drivers/at.c
| r11839 | r11840 | |
| 794 | 794 | MCFG_MC146818_IRQ_ADD( "rtc", MC146818_STANDARD, at_mc146818_config ) |
| 795 | 795 | |
| 796 | 796 | MCFG_CS8221_ADD("cs8221", "maincpu", "isa", "bios") |
| 797 | | |
| 797 | |
| 798 | 798 | /* printers */ |
| 799 | 799 | MCFG_PC_LPT_ADD("lpt_0", at_lpt_config) |
| 800 | 800 | MCFG_PC_LPT_ADD("lpt_1", at_lpt_config) |
| r11839 | r11840 | |
| 1198 | 1198 | |
| 1199 | 1199 | ROM_START( atvga ) |
| 1200 | 1200 | ROM_REGION(0x1000000,"maincpu", 0) |
| 1201 | | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1201 | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1202 | 1202 | ROM_SYSTEM_BIOS(0, "at", "PC 286") |
| 1203 | 1203 | ROMX_LOAD("at110387.1", 0xf0001, 0x8000, CRC(679296a7) SHA1(ae891314cac614dfece686d8e1d74f4763cf40e3),ROM_SKIP(1) | ROM_BIOS(1) ) |
| 1204 | 1204 | ROMX_LOAD("at110387.0", 0xf0000, 0x8000, CRC(65ae1f97) SHA1(91a29c7deecf7a9afbba330e64e0eee9aafee4d1),ROM_SKIP(1) | ROM_BIOS(1) ) |
| r11839 | r11840 | |
| 1251 | 1251 | |
| 1252 | 1252 | ROM_START( at386 ) |
| 1253 | 1253 | ROM_REGION(0x1000000,"maincpu", 0) |
| 1254 | | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1254 | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1255 | 1255 | ROM_SYSTEM_BIOS(0, "ami386", "AMI 386") |
| 1256 | 1256 | ROMX_LOAD("ami386.bin", 0xf0000, 0x10000, CRC(3a807d7f) SHA1(8289ba36a3dfc3324333b1a834bc6b0402b546f0), ROM_BIOS(1)) |
| 1257 | 1257 | ROM_SYSTEM_BIOS(1, "at386", "unknown 386") // This dump possibly comes from a MITAC INC 386 board, given that the original driver had it as manufacturer |
| r11839 | r11840 | |
| 1267 | 1267 | |
| 1268 | 1268 | ROM_START( at486 ) |
| 1269 | 1269 | ROM_REGION(0x1000000, "maincpu", 0) |
| 1270 | | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1270 | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1271 | 1271 | |
| 1272 | 1272 | ROM_SYSTEM_BIOS(0, "at486", "PC/AT 486") \ |
| 1273 | 1273 | ROMX_LOAD("at486.bin", 0x0f0000, 0x10000, CRC(31214616) SHA1(51b41fa44d92151025fc9ad06e518e906935e689), ROM_BIOS(1)) |
| r11839 | r11840 | |
| 1337 | 1337 | // Unknown 486 board with Chips & Technologies CS4031 chipset |
| 1338 | 1338 | ROM_START( ct486 ) |
| 1339 | 1339 | ROM_REGION(0x100000, "isa", 0) |
| 1340 | | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1340 | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1341 | 1341 | |
| 1342 | 1342 | ROM_REGION(0x100000, "bios", 0) |
| 1343 | 1343 | ROM_LOAD("chips_1.ami", 0xf0000, 0x10000, CRC(a14a7511) SHA1(b88d09be66905ed2deddc26a6f8522e7d2d6f9a8)) |
| r11839 | r11840 | |
| 1348 | 1348 | // VIA VT82C505 + VT82C496G + VT82C406MV, NS311/312 or NS332 I/O |
| 1349 | 1349 | ROM_START( ficpio2 ) |
| 1350 | 1350 | ROM_REGION(0x1000000, "maincpu", 0) |
| 1351 | | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1351 | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1352 | 1352 | |
| 1353 | 1353 | ROM_SYSTEM_BIOS(0, "ficpio2c7", "FIC 486-PIO-2 1.15C701") /* pnp, i/o core: NS 332 */ |
| 1354 | 1354 | ROMX_LOAD("115c701.awd", 0x0e0000, 0x20000, CRC(b0dd7975) SHA1(bfde13b0fbd141bc945d37d92faca9f4f59b716d), ROM_BIOS(1)) |
| r11839 | r11840 | |
| 1363 | 1363 | |
| 1364 | 1364 | ROM_START( at586 ) |
| 1365 | 1365 | ROM_REGION32_LE(0x40000, "user1", 0) |
| 1366 | | ROM_LOAD("et4000.bin", 0x00000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1366 | ROM_LOAD("et4000.bin", 0x00000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1367 | 1367 | ROM_SYSTEM_BIOS(0, "sptx", "SP-586TX") |
| 1368 | 1368 | ROMX_LOAD("sp586tx.bin", 0x20000, 0x20000, CRC(1003d72c) SHA1(ec9224ff9b0fdfd6e462cb7bbf419875414739d6), ROM_BIOS(1)) |
| 1369 | 1369 | ROM_SYSTEM_BIOS(1, "unisys", "Unisys 586") // probably bad dump due to need of hack in i82439tx to work |
| r11839 | r11840 | |
| 1381 | 1381 | ROM_START( c386sx16 ) |
| 1382 | 1382 | ROM_REGION(0x1000000,"maincpu", 0) |
| 1383 | 1383 | /* actual VGA BIOS not dumped - uses a WD Paradise according to http://www.cbmhardware.de/pc/pc.php */ |
| 1384 | | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1384 | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1385 | 1385 | |
| 1386 | 1386 | /* Commodore 80386SX BIOS Rev. 1.03 */ |
| 1387 | 1387 | /* Copyright (C) 1985-1990 Commodore Electronics Ltd. */ |
| r11839 | r11840 | |
| 1393 | 1393 | /* FIC VT-503 (Intel TX chipset, ITE 8679 Super I/O) */ |
| 1394 | 1394 | ROM_START( ficvt503 ) |
| 1395 | 1395 | ROM_REGION32_LE(0x40000, "user1", 0) |
| 1396 | | ROM_LOAD("et4000.bin", 0x00000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1396 | ROM_LOAD("et4000.bin", 0x00000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1397 | 1397 | |
| 1398 | 1398 | ROM_SYSTEM_BIOS(0, "109gi13", "1.09GI13") /* 1997-10-02 */ |
| 1399 | 1399 | ROMX_LOAD("109gi13.bin", 0x20000, 0x20000, CRC(0c32af48) SHA1(2cce40a98598f1ed1f398975f7a90c8be4200667), ROM_BIOS(1)) |
| r11839 | r11840 | |
| 1409 | 1409 | |
| 1410 | 1410 | ROM_START( megapc ) |
| 1411 | 1411 | ROM_REGION(0x1000000,"maincpu", 0) |
| 1412 | | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1412 | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1413 | 1413 | |
| 1414 | 1414 | ROM_LOAD16_BYTE( "41651-bios lo.u18", 0xe0000, 0x10000, CRC(1e9bd3b7) SHA1(14fd39ec12df7fae99ccdb0484ee097d93bf8d95)) |
| 1415 | 1415 | ROM_LOAD16_BYTE( "211253-bios hi.u19", 0xe0001, 0x10000, CRC(6acb573f) SHA1(376d483db2bd1c775d46424e1176b24779591525)) |
| r11839 | r11840 | |
| 1417 | 1417 | |
| 1418 | 1418 | ROM_START( megapcpl ) |
| 1419 | 1419 | ROM_REGION(0x1000000,"maincpu", 0) |
| 1420 | | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1420 | ROM_LOAD("et4000.bin", 0xc0000, 0x8000, CRC(f1e817a8) SHA1(945d405b0fb4b8f26830d495881f8587d90e5ef9) ) |
| 1421 | 1421 | |
| 1422 | 1422 | ROM_LOAD16_BYTE( "41652.u18", 0xe0000, 0x10000, CRC(6f5b9a1c) SHA1(cae981a35a01234fcec99a96cb38075d7bf23474)) |
| 1423 | 1423 | ROM_LOAD16_BYTE( "486slc.u19", 0xe0001, 0x10000, CRC(6fb7e3e9) SHA1(c439cb5a0d83176ceb2a3555e295dc1f84d85103)) |
| r11839 | r11840 | |
| 1444 | 1444 | COMP ( 1989, i8555081, ibm5170, 0, at386, atvga, at386, "International Business Machines", "IBM PS/2 Model 55SX", GAME_NOT_WORKING ) |
| 1445 | 1445 | COMP ( 1987, at, ibm5170, 0, ibm5162, atcga, atcga, "<generic>", "PC/AT (CGA, MF2 Keyboard)", GAME_NOT_WORKING ) |
| 1446 | 1446 | COMP ( 1988, cmdpc30, ibm5170, 0, ibm5162, atcga, atcga, "Commodore Business Machines", "PC 30 III", GAME_NOT_WORKING ) |
| 1447 | | COMP ( 1989, neat, ibm5170, 0, neat, atcga, atcga, "<generic>", "NEAT (CGA, MF2 Keyboard)", GAME_NOT_WORKING ) |
| 1447 | COMP ( 1989, neat, ibm5170, 0, neat, atcga, atcga, "<generic>", "NEAT (CGA, MF2 Keyboard)", GAME_NOT_WORKING ) |
| 1448 | 1448 | COMP ( 1987, atvga, ibm5170, 0, atvga, atvga, at_vga, "<generic>", "PC/AT (VGA, MF2 Keyboard)" , GAME_NOT_WORKING ) |
| 1449 | 1449 | COMP ( 1988, at386, ibm5170, 0, at386, atvga, at386, "<generic>", "PC/AT 386 (VGA, MF2 Keyboard)", GAME_NOT_WORKING ) |
| 1450 | 1450 | COMP ( 1990, at486, ibm5170, 0, at486, atvga, at386, "<generic>", "PC/AT 486 (VGA, MF2 Keyboard)", GAME_NOT_WORKING ) |
src/mess/drivers/v1050.c
| r11839 | r11840 | |
| 431 | 431 | /* Input Ports */ |
| 432 | 432 | /* |
| 433 | 433 | static INPUT_PORTS_START( v1050_real ) |
| 434 | | PORT_START("X0") |
| 435 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Left Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 436 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_MAMEKEY(LCONTROL)) |
| 437 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Caps Lock") PORT_CODE(KEYCODE_CAPSLOCK) PORT_CHAR(UCHAR_MAMEKEY(CAPSLOCK)) |
| 438 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Right Shift") PORT_CODE(KEYCODE_RSHIFT) |
| 439 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Help") |
| 440 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC) PORT_CHAR(UCHAR_MAMEKEY(ESC)) |
| 441 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) PORT_CHAR(UCHAR_MAMEKEY(TAB)) |
| 442 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("No Scrl") |
| 434 | PORT_START("X0") |
| 435 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Left Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 436 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_MAMEKEY(LCONTROL)) |
| 437 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Caps Lock") PORT_CODE(KEYCODE_CAPSLOCK) PORT_CHAR(UCHAR_MAMEKEY(CAPSLOCK)) |
| 438 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Right Shift") PORT_CODE(KEYCODE_RSHIFT) |
| 439 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Help") |
| 440 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC) PORT_CHAR(UCHAR_MAMEKEY(ESC)) |
| 441 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) PORT_CHAR(UCHAR_MAMEKEY(TAB)) |
| 442 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("No Scrl") |
| 443 | 443 | |
| 444 | | PORT_START("X1") |
| 445 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad Enter DelCh") PORT_CODE(KEYCODE_ENTER_PAD) PORT_CHAR(UCHAR_MAMEKEY(ENTER_PAD)) |
| 446 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 6 Pg Dn") PORT_CODE(KEYCODE_6_PAD) PORT_CHAR(UCHAR_MAMEKEY(6_PAD)) |
| 447 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 3 \xE2\x86\x92") PORT_CODE(KEYCODE_3_PAD) PORT_CHAR(UCHAR_MAMEKEY(3_PAD)) |
| 448 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 449 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad - DelLn") PORT_CODE(KEYCODE_MINUS_PAD) PORT_CHAR(UCHAR_MAMEKEY(MINUS_PAD)) |
| 450 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 9 End") PORT_CODE(KEYCODE_9_PAD) PORT_CHAR(UCHAR_MAMEKEY(9_PAD)) |
| 451 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad , DelWd") |
| 452 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad . Wd\xE2\x86\x92") PORT_CODE(KEYCODE_DEL_PAD) PORT_CHAR(UCHAR_MAMEKEY(DEL_PAD)) |
| 444 | PORT_START("X1") |
| 445 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad Enter DelCh") PORT_CODE(KEYCODE_ENTER_PAD) PORT_CHAR(UCHAR_MAMEKEY(ENTER_PAD)) |
| 446 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 6 Pg Dn") PORT_CODE(KEYCODE_6_PAD) PORT_CHAR(UCHAR_MAMEKEY(6_PAD)) |
| 447 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 3 \xE2\x86\x92") PORT_CODE(KEYCODE_3_PAD) PORT_CHAR(UCHAR_MAMEKEY(3_PAD)) |
| 448 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 449 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad - DelLn") PORT_CODE(KEYCODE_MINUS_PAD) PORT_CHAR(UCHAR_MAMEKEY(MINUS_PAD)) |
| 450 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 9 End") PORT_CODE(KEYCODE_9_PAD) PORT_CHAR(UCHAR_MAMEKEY(9_PAD)) |
| 451 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad , DelWd") |
| 452 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad . Wd\xE2\x86\x92") PORT_CODE(KEYCODE_DEL_PAD) PORT_CHAR(UCHAR_MAMEKEY(DEL_PAD)) |
| 453 | 453 | |
| 454 | | PORT_START("X2") |
| 455 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F14 OnSer") |
| 456 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F16 Print") |
| 457 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F12 Copy") PORT_CODE(KEYCODE_F12) PORT_CHAR(UCHAR_MAMEKEY(F12)) |
| 458 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F10 End") PORT_CODE(KEYCODE_F10) PORT_CHAR(UCHAR_MAMEKEY(F10)) |
| 459 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F15 Quick") |
| 460 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F11 Move") PORT_CODE(KEYCODE_F11) PORT_CHAR(UCHAR_MAMEKEY(F11)) |
| 461 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F17 Block") |
| 462 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F13 Hide") |
| 454 | PORT_START("X2") |
| 455 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F14 OnSer") |
| 456 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F16 Print") |
| 457 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F12 Copy") PORT_CODE(KEYCODE_F12) PORT_CHAR(UCHAR_MAMEKEY(F12)) |
| 458 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F10 End") PORT_CODE(KEYCODE_F10) PORT_CHAR(UCHAR_MAMEKEY(F10)) |
| 459 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F15 Quick") |
| 460 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F11 Move") PORT_CODE(KEYCODE_F11) PORT_CHAR(UCHAR_MAMEKEY(F11)) |
| 461 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F17 Block") |
| 462 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F13 Hide") |
| 463 | 463 | |
| 464 | | PORT_START("X3") |
| 465 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Line Feed") |
| 466 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR('|') PORT_CHAR('\\') |
| 467 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Retn") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 468 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Num Lock") PORT_CODE(KEYCODE_NUMLOCK) PORT_CHAR(UCHAR_MAMEKEY(NUMLOCK)) |
| 469 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Break Stop") |
| 470 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Back Space") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 471 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Del") PORT_CODE(KEYCODE_DEL) PORT_CHAR(UCHAR_MAMEKEY(DEL)) |
| 472 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 0 Wd\xE2\x86\x90") PORT_CODE(KEYCODE_0_PAD) PORT_CHAR(UCHAR_MAMEKEY(0_PAD)) |
| 464 | PORT_START("X3") |
| 465 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Line Feed") |
| 466 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR('|') PORT_CHAR('\\') |
| 467 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Retn") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 468 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Num Lock") PORT_CODE(KEYCODE_NUMLOCK) PORT_CHAR(UCHAR_MAMEKEY(NUMLOCK)) |
| 469 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Break Stop") |
| 470 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Back Space") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 471 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Del") PORT_CODE(KEYCODE_DEL) PORT_CHAR(UCHAR_MAMEKEY(DEL)) |
| 472 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 0 Wd\xE2\x86\x90") PORT_CODE(KEYCODE_0_PAD) PORT_CHAR(UCHAR_MAMEKEY(0_PAD)) |
| 473 | 473 | |
| 474 | | PORT_START("X4") |
| 475 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 476 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 5 \xE2\x86\x91") PORT_CODE(KEYCODE_5_PAD) PORT_CHAR(UCHAR_MAMEKEY(5_PAD)) |
| 477 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 1 \xE2\x86\x90") PORT_CODE(KEYCODE_1_PAD) PORT_CHAR(UCHAR_MAMEKEY(1_PAD)) |
| 478 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 479 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 7 Home") PORT_CODE(KEYCODE_7_PAD) PORT_CHAR(UCHAR_MAMEKEY(7_PAD)) |
| 480 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 8 Last") PORT_CODE(KEYCODE_8_PAD) PORT_CHAR(UCHAR_MAMEKEY(8_PAD)) |
| 481 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 4 PgUp") PORT_CODE(KEYCODE_4_PAD) PORT_CHAR(UCHAR_MAMEKEY(4_PAD)) |
| 482 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 2 \xE2\x86\x93") PORT_CODE(KEYCODE_2_PAD) PORT_CHAR(UCHAR_MAMEKEY(2_PAD)) |
| 474 | PORT_START("X4") |
| 475 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 476 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 5 \xE2\x86\x91") PORT_CODE(KEYCODE_5_PAD) PORT_CHAR(UCHAR_MAMEKEY(5_PAD)) |
| 477 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 1 \xE2\x86\x90") PORT_CODE(KEYCODE_1_PAD) PORT_CHAR(UCHAR_MAMEKEY(1_PAD)) |
| 478 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 479 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 7 Home") PORT_CODE(KEYCODE_7_PAD) PORT_CHAR(UCHAR_MAMEKEY(7_PAD)) |
| 480 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 8 Last") PORT_CODE(KEYCODE_8_PAD) PORT_CHAR(UCHAR_MAMEKEY(8_PAD)) |
| 481 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 4 PgUp") PORT_CODE(KEYCODE_4_PAD) PORT_CHAR(UCHAR_MAMEKEY(4_PAD)) |
| 482 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 2 \xE2\x86\x93") PORT_CODE(KEYCODE_2_PAD) PORT_CHAR(UCHAR_MAMEKEY(2_PAD)) |
| 483 | 483 | |
| 484 | | PORT_START("X5") |
| 485 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_K) PORT_CHAR('k') PORT_CHAR('K') |
| 486 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') |
| 487 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_H) PORT_CHAR('h') PORT_CHAR('H') |
| 488 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_L) PORT_CHAR('l') PORT_CHAR('L') |
| 489 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_U) PORT_CHAR('u') PORT_CHAR('U') |
| 490 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') |
| 491 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') |
| 492 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_J) PORT_CHAR('j') PORT_CHAR('J') |
| 484 | PORT_START("X5") |
| 485 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_K) PORT_CHAR('k') PORT_CHAR('K') |
| 486 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') |
| 487 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_H) PORT_CHAR('h') PORT_CHAR('H') |
| 488 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_L) PORT_CHAR('l') PORT_CHAR('L') |
| 489 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_U) PORT_CHAR('u') PORT_CHAR('U') |
| 490 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') |
| 491 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') |
| 492 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_J) PORT_CHAR('j') PORT_CHAR('J') |
| 493 | 493 | |
| 494 | | PORT_START("X6") |
| 495 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') |
| 496 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('^') |
| 497 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F) PORT_CHAR('f') PORT_CHAR('F') |
| 498 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') |
| 499 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_T) PORT_CHAR('t') PORT_CHAR('T') |
| 500 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 501 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Y) PORT_CHAR('y') PORT_CHAR('Y') |
| 502 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*') |
| 494 | PORT_START("X6") |
| 495 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') |
| 496 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('^') |
| 497 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F) PORT_CHAR('f') PORT_CHAR('F') |
| 498 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') |
| 499 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_T) PORT_CHAR('t') PORT_CHAR('T') |
| 500 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 501 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Y) PORT_CHAR('y') PORT_CHAR('Y') |
| 502 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*') |
| 503 | 503 | |
| 504 | | PORT_START("X7") |
| 505 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F8 Insert") PORT_CODE(KEYCODE_F8) PORT_CHAR(UCHAR_MAMEKEY(F8)) |
| 506 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) PORT_CHAR(UCHAR_MAMEKEY(F5)) |
| 507 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F6 InsCr") PORT_CODE(KEYCODE_F6) PORT_CHAR(UCHAR_MAMEKEY(F6)) |
| 508 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F9 Begin") PORT_CODE(KEYCODE_F9) PORT_CHAR(UCHAR_MAMEKEY(F9)) |
| 509 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F3 Rept") PORT_CODE(KEYCODE_F3) PORT_CHAR(UCHAR_MAMEKEY(F3)) |
| 510 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F2 Find") PORT_CODE(KEYCODE_F2) PORT_CHAR(UCHAR_MAMEKEY(F2)) |
| 511 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F4 Again") PORT_CODE(KEYCODE_F4) PORT_CHAR(UCHAR_MAMEKEY(F4)) |
| 512 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F7 Refs") PORT_CODE(KEYCODE_F7) PORT_CHAR(UCHAR_MAMEKEY(F7)) |
| 504 | PORT_START("X7") |
| 505 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F8 Insert") PORT_CODE(KEYCODE_F8) PORT_CHAR(UCHAR_MAMEKEY(F8)) |
| 506 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) PORT_CHAR(UCHAR_MAMEKEY(F5)) |
| 507 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F6 InsCr") PORT_CODE(KEYCODE_F6) PORT_CHAR(UCHAR_MAMEKEY(F6)) |
| 508 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F9 Begin") PORT_CODE(KEYCODE_F9) PORT_CHAR(UCHAR_MAMEKEY(F9)) |
| 509 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F3 Rept") PORT_CODE(KEYCODE_F3) PORT_CHAR(UCHAR_MAMEKEY(F3)) |
| 510 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F2 Find") PORT_CODE(KEYCODE_F2) PORT_CHAR(UCHAR_MAMEKEY(F2)) |
| 511 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F4 Again") PORT_CODE(KEYCODE_F4) PORT_CHAR(UCHAR_MAMEKEY(F4)) |
| 512 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F7 Refs") PORT_CODE(KEYCODE_F7) PORT_CHAR(UCHAR_MAMEKEY(F7)) |
| 513 | 513 | |
| 514 | | PORT_START("X8") |
| 515 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') |
| 516 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') |
| 517 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_D) PORT_CHAR('d') PORT_CHAR('D') |
| 518 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_C) PORT_CHAR('c') PORT_CHAR('C') |
| 519 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F1 Save") PORT_CODE(KEYCODE_F1) PORT_CHAR(UCHAR_MAMEKEY(F1)) |
| 520 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 521 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_E) PORT_CHAR('e') PORT_CHAR('E') |
| 522 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_S) PORT_CHAR('s') PORT_CHAR('S') |
| 514 | PORT_START("X8") |
| 515 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') |
| 516 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') |
| 517 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_D) PORT_CHAR('d') PORT_CHAR('D') |
| 518 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_C) PORT_CHAR('c') PORT_CHAR('C') |
| 519 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F1 Save") PORT_CODE(KEYCODE_F1) PORT_CHAR(UCHAR_MAMEKEY(F1)) |
| 520 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 521 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_E) PORT_CHAR('e') PORT_CHAR('E') |
| 522 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_S) PORT_CHAR('s') PORT_CHAR('S') |
| 523 | 523 | |
| 524 | | PORT_START("X9") |
| 525 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_A) PORT_CHAR('a') PORT_CHAR('A') |
| 526 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') |
| 527 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') |
| 528 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') |
| 529 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@') |
| 530 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') |
| 531 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') |
| 532 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') |
| 524 | PORT_START("X9") |
| 525 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_A) PORT_CHAR('a') PORT_CHAR('A') |
| 526 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') |
| 527 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') |
| 528 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') |
| 529 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@') |
| 530 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') |
| 531 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') |
| 532 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') |
| 533 | 533 | |
| 534 | | PORT_START("XA") |
| 535 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_TILDE) PORT_CHAR('~') PORT_CHAR('\'') |
| 536 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_9) PORT_CHAR('0') PORT_CHAR(')') |
| 537 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CHAR('9') PORT_CHAR('(') |
| 538 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+') |
| 539 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('^') |
| 540 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('_') |
| 541 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*') |
| 542 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('&') |
| 534 | PORT_START("XA") |
| 535 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_TILDE) PORT_CHAR('~') PORT_CHAR('\'') |
| 536 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_9) PORT_CHAR('0') PORT_CHAR(')') |
| 537 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CHAR('9') PORT_CHAR('(') |
| 538 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+') |
| 539 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('^') |
| 540 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('_') |
| 541 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*') |
| 542 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('&') |
| 543 | 543 | |
| 544 | | PORT_START("XB") |
| 545 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') |
| 546 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR(':') |
| 547 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_QUOTE) PORT_CHAR('\'') PORT_CHAR('"') |
| 548 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 549 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') PORT_CHAR('{') |
| 550 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 551 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') PORT_CHAR('}') |
| 552 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) |
| 544 | PORT_START("XB") |
| 545 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') |
| 546 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR(':') |
| 547 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_QUOTE) PORT_CHAR('\'') PORT_CHAR('"') |
| 548 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 549 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') PORT_CHAR('{') |
| 550 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 551 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') PORT_CHAR('}') |
| 552 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) |
| 553 | 553 | INPUT_PORTS_END |
| 554 | 554 | */ |
| 555 | 555 | static INPUT_PORTS_START( v1050 ) |
src/mess/drivers/trs80m2.c
| r11839 | r11840 | |
| 506 | 506 | |
| 507 | 507 | /* |
| 508 | 508 | static INPUT_PORTS_START( trs80m2_real ) |
| 509 | | PORT_START("ROW0") |
| 510 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 511 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 512 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 513 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') |
| 514 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') |
| 515 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 0") PORT_CODE(KEYCODE_0_PAD) |
| 516 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_M) PORT_CHAR('m') PORT_CHAR('M') |
| 517 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 509 | PORT_START("ROW0") |
| 510 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 511 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 512 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 513 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_V) PORT_CHAR('v') PORT_CHAR('V') |
| 514 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Z) PORT_CHAR('z') PORT_CHAR('Z') |
| 515 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 0") PORT_CODE(KEYCODE_0_PAD) |
| 516 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_M) PORT_CHAR('m') PORT_CHAR('M') |
| 517 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 518 | 518 | |
| 519 | | PORT_START("ROW1") |
| 520 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 521 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 522 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') |
| 523 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_B) PORT_CHAR('b') PORT_CHAR('B') |
| 524 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') |
| 525 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(UTF8_DOWN) PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| 526 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') |
| 527 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 519 | PORT_START("ROW1") |
| 520 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 521 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 522 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('N') |
| 523 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_B) PORT_CHAR('b') PORT_CHAR('B') |
| 524 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_X) PORT_CHAR('x') PORT_CHAR('X') |
| 525 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(UTF8_DOWN) PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| 526 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') |
| 527 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 528 | 528 | |
| 529 | | PORT_START("ROW2") |
| 530 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("REPEAT") |
| 531 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Right SHIFT") PORT_CODE(KEYCODE_RSHIFT) |
| 532 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("CAPS") PORT_CODE(KEYCODE_CAPSLOCK) PORT_CHAR(UCHAR_MAMEKEY(CAPSLOCK)) |
| 533 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Left SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 534 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("LOCK") |
| 535 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 536 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("CTRL") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_MAMEKEY(LCONTROL)) |
| 537 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 529 | PORT_START("ROW2") |
| 530 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("REPEAT") |
| 531 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Right SHIFT") PORT_CODE(KEYCODE_RSHIFT) |
| 532 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("CAPS") PORT_CODE(KEYCODE_CAPSLOCK) PORT_CHAR(UCHAR_MAMEKEY(CAPSLOCK)) |
| 533 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Left SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 534 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("LOCK") |
| 535 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 536 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("CTRL") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_MAMEKEY(LCONTROL)) |
| 537 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 538 | 538 | |
| 539 | | PORT_START("ROW3") |
| 540 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("cannot read label") |
| 541 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CHAR('0') PORT_CHAR(')') |
| 542 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR('(') |
| 543 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') |
| 544 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') |
| 545 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad .") PORT_CODE(KEYCODE_DEL_PAD) |
| 546 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 3") PORT_CODE(KEYCODE_3_PAD) |
| 547 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(UTF8_LEFT) PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 539 | PORT_START("ROW3") |
| 540 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("cannot read label") |
| 541 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CHAR('0') PORT_CHAR(')') |
| 542 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR('(') |
| 543 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') |
| 544 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') |
| 545 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad .") PORT_CODE(KEYCODE_DEL_PAD) |
| 546 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 3") PORT_CODE(KEYCODE_3_PAD) |
| 547 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(UTF8_LEFT) PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 548 | 548 | |
| 549 | | PORT_START("ROW4") |
| 550 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("BACKSPACE") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 551 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_L) PORT_CHAR('l') PORT_CHAR('L') |
| 552 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') |
| 553 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_D) PORT_CHAR('d') PORT_CHAR('D') |
| 554 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_E) PORT_CHAR('e') PORT_CHAR('E') |
| 555 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 556 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 5") PORT_CODE(KEYCODE_5_PAD) |
| 557 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(UTF8_RIGHT) PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| 549 | PORT_START("ROW4") |
| 550 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("BACKSPACE") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 551 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_L) PORT_CHAR('l') PORT_CHAR('L') |
| 552 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('O') |
| 553 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_D) PORT_CHAR('d') PORT_CHAR('D') |
| 554 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_E) PORT_CHAR('e') PORT_CHAR('E') |
| 555 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 556 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 5") PORT_CODE(KEYCODE_5_PAD) |
| 557 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(UTF8_RIGHT) PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| 558 | 558 | |
| 559 | | PORT_START("ROW5") |
| 560 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("HOLD") |
| 561 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') PORT_CHAR('}') |
| 562 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_H) PORT_CHAR('h') PORT_CHAR('H') |
| 563 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('^') |
| 564 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_S) PORT_CHAR('s') PORT_CHAR('S') |
| 565 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 566 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 2") PORT_CODE(KEYCODE_2_PAD) |
| 567 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(UTF8_UP) PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 559 | PORT_START("ROW5") |
| 560 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("HOLD") |
| 561 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') PORT_CHAR('}') |
| 562 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_H) PORT_CHAR('h') PORT_CHAR('H') |
| 563 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('^') |
| 564 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_S) PORT_CHAR('s') PORT_CHAR('S') |
| 565 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 566 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 2") PORT_CODE(KEYCODE_2_PAD) |
| 567 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(UTF8_UP) PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 568 | 568 | |
| 569 | | PORT_START("ROW6") |
| 570 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 571 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+') |
| 572 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_K) PORT_CHAR('k') PORT_CHAR('K') |
| 573 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Y) PORT_CHAR('y') PORT_CHAR('Y') |
| 574 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@') |
| 575 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad ENTER") PORT_CODE(KEYCODE_ENTER_PAD) PORT_CHAR(13) |
| 576 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 9") PORT_CODE(KEYCODE_9_PAD) |
| 577 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 7") PORT_CODE(KEYCODE_7_PAD) |
| 569 | PORT_START("ROW6") |
| 570 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 571 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('=') PORT_CHAR('+') |
| 572 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_K) PORT_CHAR('k') PORT_CHAR('K') |
| 573 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Y) PORT_CHAR('y') PORT_CHAR('Y') |
| 574 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@') |
| 575 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad ENTER") PORT_CODE(KEYCODE_ENTER_PAD) PORT_CHAR(13) |
| 576 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 9") PORT_CODE(KEYCODE_9_PAD) |
| 577 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 7") PORT_CODE(KEYCODE_7_PAD) |
| 578 | 578 | |
| 579 | | PORT_START("ROW7") |
| 580 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 581 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_QUOTE) PORT_CHAR('\'') PORT_CHAR('"') |
| 582 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*') |
| 583 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_G) PORT_CHAR('g') PORT_CHAR('G') |
| 584 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') |
| 585 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 586 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 6") PORT_CODE(KEYCODE_6_PAD) |
| 587 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 4") PORT_CODE(KEYCODE_4_PAD) |
| 579 | PORT_START("ROW7") |
| 580 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 581 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_QUOTE) PORT_CHAR('\'') PORT_CHAR('"') |
| 582 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('*') |
| 583 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_G) PORT_CHAR('g') PORT_CHAR('G') |
| 584 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_W) PORT_CHAR('w') PORT_CHAR('W') |
| 585 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 586 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 6") PORT_CODE(KEYCODE_6_PAD) |
| 587 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 4") PORT_CODE(KEYCODE_4_PAD) |
| 588 | 588 | |
| 589 | | PORT_START("ROW8") |
| 590 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 591 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('_') |
| 592 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') |
| 593 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') |
| 594 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_C) PORT_CHAR('c') PORT_CHAR('C') |
| 595 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 596 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 8") PORT_CODE(KEYCODE_8_PAD) |
| 597 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 1") PORT_CODE(KEYCODE_1_PAD) |
| 589 | PORT_START("ROW8") |
| 590 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 591 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('_') |
| 592 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_I) PORT_CHAR('i') PORT_CHAR('I') |
| 593 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') |
| 594 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_C) PORT_CHAR('c') PORT_CHAR('C') |
| 595 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 596 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 8") PORT_CODE(KEYCODE_8_PAD) |
| 597 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Keypad 1") PORT_CODE(KEYCODE_1_PAD) |
| 598 | 598 | |
| 599 | | PORT_START("ROW9") |
| 600 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 601 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') PORT_CHAR('{') |
| 602 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_J) PORT_CHAR('j') PORT_CHAR('J') |
| 603 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_T) PORT_CHAR('t') PORT_CHAR('T') |
| 604 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_A) PORT_CHAR('a') PORT_CHAR('A') |
| 605 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 606 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 607 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 599 | PORT_START("ROW9") |
| 600 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 601 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR('[') PORT_CHAR('{') |
| 602 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_J) PORT_CHAR('j') PORT_CHAR('J') |
| 603 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_T) PORT_CHAR('t') PORT_CHAR('T') |
| 604 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_A) PORT_CHAR('a') PORT_CHAR('A') |
| 605 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 606 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 607 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 608 | 608 | |
| 609 | | PORT_START("ROW10") |
| 610 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 611 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR(':') |
| 612 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('&') |
| 613 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F) PORT_CHAR('f') PORT_CHAR('F') |
| 614 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 615 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 616 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("ESC") PORT_CODE(KEYCODE_ESC) PORT_CHAR(UCHAR_MAMEKEY(ESC)) |
| 617 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 609 | PORT_START("ROW10") |
| 610 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 611 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR(':') |
| 612 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('&') |
| 613 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F) PORT_CHAR('f') PORT_CHAR('F') |
| 614 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 615 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 616 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("ESC") PORT_CODE(KEYCODE_ESC) PORT_CHAR(UCHAR_MAMEKEY(ESC)) |
| 617 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 618 | 618 | |
| 619 | | PORT_START("ROW11") |
| 620 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 621 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') |
| 622 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_U) PORT_CHAR('u') PORT_CHAR('U') |
| 623 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') |
| 624 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') |
| 625 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 626 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("TAB") PORT_CODE(KEYCODE_TAB) PORT_CHAR('\t') |
| 627 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 619 | PORT_START("ROW11") |
| 620 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 621 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('P') |
| 622 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_U) PORT_CHAR('u') PORT_CHAR('U') |
| 623 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_R) PORT_CHAR('r') PORT_CHAR('R') |
| 624 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Q) PORT_CHAR('q') PORT_CHAR('Q') |
| 625 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 626 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("TAB") PORT_CODE(KEYCODE_TAB) PORT_CHAR('\t') |
| 627 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 628 | 628 | INPUT_PORTS_END |
| 629 | 629 | */ |
| 630 | 630 | /* Video */ |
src/mess/drivers/next.c
| r11839 | r11840 | |
| 5 | 5 | 05/11/2009 Skeleton driver. |
| 6 | 6 | |
| 7 | 7 | TODO: |
| 8 | | |
| 9 | | - SCC |
| 10 | | - keyboard |
| 11 | | - mouse |
| 12 | | - network |
| 13 | | - optical drive |
| 14 | | - floppy |
| 15 | | - hdd |
| 16 | 8 | |
| 9 | - SCC |
| 10 | - keyboard |
| 11 | - mouse |
| 12 | - network |
| 13 | - optical drive |
| 14 | - floppy |
| 15 | - hdd |
| 16 | |
| 17 | 17 | DASM notes: |
| 18 | 18 | - Jumping to 0x21ee means that the system POST failed |
| 19 | 19 | - 0x258c: ROM test (check with 0x1a) |
| 20 | 20 | - currently fails at 0xfee sub-routine (jumping it starts the MO disk check) |
| 21 | | |
| 22 | | Memory map and other bits can be found here: |
| 23 | | http://fxr.watson.org/fxr/source/arch/next68k/include/cpu.h?v=NETBSD5#L366 |
| 24 | 21 | |
| 22 | Memory map and other bits can be found here: |
| 23 | http://fxr.watson.org/fxr/source/arch/next68k/include/cpu.h?v=NETBSD5#L366 |
| 24 | |
| 25 | 25 | ****************************************************************************/ |
| 26 | 26 | |
| 27 | 27 | #include "includes/next.h" |
| r11839 | r11840 | |
| 176 | 176 | static ADDRESS_MAP_START( next_mem, AS_PROGRAM, 32, next_state ) |
| 177 | 177 | AM_RANGE(0x00000000, 0x0001ffff) AM_ROM AM_REGION("user1", 0) |
| 178 | 178 | AM_RANGE(0x01000000, 0x0101ffff) AM_ROM AM_REGION("user1", 0) |
| 179 | | // AM_RANGE(0x02000010, 0x02000010) AM_MIRROR(0x100000) SCSI DMA CSR |
| 180 | | // AM_RANGE(0x02000040, 0x02000040) AM_MIRROR(0x100000) SOUNDOUT DMA CSR |
| 181 | | // AM_RANGE(0x02000050, 0x02000050) AM_MIRROR(0x100000) DISK DMA CSR |
| 182 | | // AM_RANGE(0x02000080, 0x02000080) AM_MIRROR(0x100000) SOUNDIN DMA CSR |
| 183 | | // AM_RANGE(0x02000090, 0x02000090) AM_MIRROR(0x100000) PRINTER DMA CSR |
| 184 | | // AM_RANGE(0x020000c0, 0x020000c0) AM_MIRROR(0x100000) SCC DMA CSR |
| 185 | | // AM_RANGE(0x020000d0, 0x020000d0) AM_MIRROR(0x100000) DSP DMA CSR |
| 186 | | // AM_RANGE(0x02000110, 0x02000110) AM_MIRROR(0x100000) ENETX DMA CSR |
| 187 | | // AM_RANGE(0x02000150, 0x02000150) AM_MIRROR(0x100000) ENETR DMA CSR |
| 188 | | // AM_RANGE(0x02000180, 0x02000180) AM_MIRROR(0x100000) VIDEO DMA CSR |
| 189 | | // AM_RANGE(0x020001c0, 0x020001c0) AM_MIRROR(0x100000) R2M DMA CSR |
| 190 | | // AM_RANGE(0x020001d0, 0x020001d0) AM_MIRROR(0x100000) M2R DMA CSR |
| 179 | // AM_RANGE(0x02000010, 0x02000010) AM_MIRROR(0x100000) SCSI DMA CSR |
| 180 | // AM_RANGE(0x02000040, 0x02000040) AM_MIRROR(0x100000) SOUNDOUT DMA CSR |
| 181 | // AM_RANGE(0x02000050, 0x02000050) AM_MIRROR(0x100000) DISK DMA CSR |
| 182 | // AM_RANGE(0x02000080, 0x02000080) AM_MIRROR(0x100000) SOUNDIN DMA CSR |
| 183 | // AM_RANGE(0x02000090, 0x02000090) AM_MIRROR(0x100000) PRINTER DMA CSR |
| 184 | // AM_RANGE(0x020000c0, 0x020000c0) AM_MIRROR(0x100000) SCC DMA CSR |
| 185 | // AM_RANGE(0x020000d0, 0x020000d0) AM_MIRROR(0x100000) DSP DMA CSR |
| 186 | // AM_RANGE(0x02000110, 0x02000110) AM_MIRROR(0x100000) ENETX DMA CSR |
| 187 | // AM_RANGE(0x02000150, 0x02000150) AM_MIRROR(0x100000) ENETR DMA CSR |
| 188 | // AM_RANGE(0x02000180, 0x02000180) AM_MIRROR(0x100000) VIDEO DMA CSR |
| 189 | // AM_RANGE(0x020001c0, 0x020001c0) AM_MIRROR(0x100000) R2M DMA CSR |
| 190 | // AM_RANGE(0x020001d0, 0x020001d0) AM_MIRROR(0x100000) M2R DMA CSR |
| 191 | 191 | AM_RANGE(0x02006000, 0x02006003) AM_MIRROR(0x100000) AM_READ(unk_r) // ethernet |
| 192 | | // AM_RANGE(0x02006010, 0x02006013) AM_MIRROR(0x100000) memory timing |
| 192 | // AM_RANGE(0x02006010, 0x02006013) AM_MIRROR(0x100000) memory timing |
| 193 | 193 | AM_RANGE(0x02007000, 0x02007003) AM_MIRROR(0x100000) AM_READWRITE(irq_status_r,irq_status_w) |
| 194 | 194 | AM_RANGE(0x02007800, 0x02007803) AM_MIRROR(0x100000) AM_READWRITE(irq_mask_r,irq_mask_w) |
| 195 | | // AM_RANGE(0x02008000, 0x02008003) AM_MIRROR(0x100000) DSP |
| 195 | // AM_RANGE(0x02008000, 0x02008003) AM_MIRROR(0x100000) DSP |
| 196 | 196 | AM_RANGE(0x0200c000, 0x0200c003) AM_MIRROR(0x100000) AM_READ(scr1_r) |
| 197 | 197 | AM_RANGE(0x0200c800, 0x0200c803) AM_MIRROR(0x100000) AM_READ(rom_map_r) |
| 198 | 198 | AM_RANGE(0x0200d000, 0x0200d003) AM_MIRROR(0x100000) AM_READWRITE(scr2_r,scr2_w) |
| 199 | | // AM_RANGE(0x0200d800, 0x0200d803) AM_MIRROR(0x100000) RMTINT |
| 199 | // AM_RANGE(0x0200d800, 0x0200d803) AM_MIRROR(0x100000) RMTINT |
| 200 | 200 | AM_RANGE(0x0200e000, 0x0200e00f) AM_MIRROR(0x100000) AM_READ(unk_r) //keyboard |
| 201 | | // AM_RANGE(0x0200f000, 0x0200f003) AM_MIRROR(0x100000) printer |
| 202 | | // AM_RANGE(0x02010000, 0x02010003) AM_MIRROR(0x100000) brightness |
| 201 | // AM_RANGE(0x0200f000, 0x0200f003) AM_MIRROR(0x100000) printer |
| 202 | // AM_RANGE(0x02010000, 0x02010003) AM_MIRROR(0x100000) brightness |
| 203 | 203 | AM_RANGE(0x02012004, 0x02012007) AM_MIRROR(0x100000) AM_READ(modisk_r) |
| 204 | | // AM_RANGE(0x02014000, 0x02014003) AM_MIRROR(0x100000) SCSI |
| 205 | | // AM_RANGE(0x02014100, 0x02014103) AM_MIRROR(0x100000) floppy |
| 206 | | // AM_RANGE(0x02016000, 0x02016003) AM_MIRROR(0x100000) timer |
| 207 | | // AM_RANGE(0x02016004, 0x02016007) AM_MIRROR(0x100000) timer CSR |
| 208 | | // AM_RANGE(0x02018000, 0x02018003) AM_MIRROR(0x100000) SCC |
| 209 | | // AM_RANGE(0x02018004, 0x02018007) AM_MIRROR(0x100000) SCC CLK |
| 210 | | // AM_RANGE(0x02018100, 0x02018103) AM_MIRROR(0x100000) Color RAMDAC |
| 211 | | // AM_RANGE(0x02018104, 0x02018107) AM_MIRROR(0x100000) Color CSR |
| 212 | | // AM_RANGE(0x02018190, 0x02018197) AM_MIRROR(0x100000) warp 9c DRAM timing |
| 213 | | // AM_RANGE(0x02018198, 0x0201819f) AM_MIRROR(0x100000) warp 9c VRAM timing |
| 204 | // AM_RANGE(0x02014000, 0x02014003) AM_MIRROR(0x100000) SCSI |
| 205 | // AM_RANGE(0x02014100, 0x02014103) AM_MIRROR(0x100000) floppy |
| 206 | // AM_RANGE(0x02016000, 0x02016003) AM_MIRROR(0x100000) timer |
| 207 | // AM_RANGE(0x02016004, 0x02016007) AM_MIRROR(0x100000) timer CSR |
| 208 | // AM_RANGE(0x02018000, 0x02018003) AM_MIRROR(0x100000) SCC |
| 209 | // AM_RANGE(0x02018004, 0x02018007) AM_MIRROR(0x100000) SCC CLK |
| 210 | // AM_RANGE(0x02018100, 0x02018103) AM_MIRROR(0x100000) Color RAMDAC |
| 211 | // AM_RANGE(0x02018104, 0x02018107) AM_MIRROR(0x100000) Color CSR |
| 212 | // AM_RANGE(0x02018190, 0x02018197) AM_MIRROR(0x100000) warp 9c DRAM timing |
| 213 | // AM_RANGE(0x02018198, 0x0201819f) AM_MIRROR(0x100000) warp 9c VRAM timing |
| 214 | 214 | AM_RANGE(0x0201a000, 0x0201a003) AM_MIRROR(0x100000) AM_READ(network_r) // EVENTC |
| 215 | | // AM_RANGE(0x020c0000, 0x020c0004) AM_MIRROR(0x100000) BMAP |
| 215 | // AM_RANGE(0x020c0000, 0x020c0004) AM_MIRROR(0x100000) BMAP |
| 216 | 216 | AM_RANGE(0x02000000, 0x0201ffff) AM_MIRROR(0x100000) AM_READWRITE8(io_r,io_w,0xffffffff) //intentional fall-through |
| 217 | 217 | AM_RANGE(0x04000000, 0x07ffffff) AM_RAM //work ram |
| 218 | 218 | AM_RANGE(0x0b000000, 0x0b03ffff) AM_RAM AM_BASE(m_vram) //vram |
| 219 | | // AM_RANGE(0x0c000000, 0x0c03ffff) video RAM w A+B-AB function |
| 220 | | // AM_RANGE(0x0d000000, 0x0d03ffff) video RAM w (1-A)B function |
| 221 | | // AM_RANGE(0x0e000000, 0x0e03ffff) video RAM w ceil(A+B) function |
| 222 | | // AM_RANGE(0x0f000000, 0x0f03ffff) video RAM w AB function |
| 223 | | // AM_RANGE(0x10000000, 0x1003ffff) main RAM w A+B-AB function |
| 224 | | // AM_RANGE(0x14000000, 0x1403ffff) main RAM w (1-A)B function |
| 225 | | // AM_RANGE(0x18000000, 0x1803ffff) main RAM w ceil(A+B) function |
| 226 | | // AM_RANGE(0x1c000000, 0x1c03ffff) main RAM w AB function |
| 227 | | // AM_RANGE(0x2c000000, 0x2c1fffff) Color VRAM |
| 219 | // AM_RANGE(0x0c000000, 0x0c03ffff) video RAM w A+B-AB function |
| 220 | // AM_RANGE(0x0d000000, 0x0d03ffff) video RAM w (1-A)B function |
| 221 | // AM_RANGE(0x0e000000, 0x0e03ffff) video RAM w ceil(A+B) function |
| 222 | // AM_RANGE(0x0f000000, 0x0f03ffff) video RAM w AB function |
| 223 | // AM_RANGE(0x10000000, 0x1003ffff) main RAM w A+B-AB function |
| 224 | // AM_RANGE(0x14000000, 0x1403ffff) main RAM w (1-A)B function |
| 225 | // AM_RANGE(0x18000000, 0x1803ffff) main RAM w ceil(A+B) function |
| 226 | // AM_RANGE(0x1c000000, 0x1c03ffff) main RAM w AB function |
| 227 | // AM_RANGE(0x2c000000, 0x2c1fffff) Color VRAM |
| 228 | 228 | ADDRESS_MAP_END |
| 229 | 229 | |
| 230 | 230 | /* Input ports */ |
src/mess/drivers/apple2.c
| r11839 | r11840 | |
| 274 | 274 | INPUT_PORTS_END |
| 275 | 275 | |
| 276 | 276 | /*static INPUT_PORTS_START( apple2_paddle ) |
| 277 | | PORT_START("paddle_0") |
| 278 | | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_NAME("P1 Paddle 0") |
| 279 | | PORT_SENSITIVITY(PADDLE_SENSITIVITY) |
| 280 | | PORT_KEYDELTA(PADDLE_DELTA) |
| 281 | | PORT_CENTERDELTA(PADDLE_AUTOCENTER) |
| 282 | | PORT_MINMAX(0,0xff) PORT_PLAYER(1) |
| 283 | | PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) |
| 284 | | PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) |
| 277 | PORT_START("paddle_0") |
| 278 | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_NAME("P1 Paddle 0") |
| 279 | PORT_SENSITIVITY(PADDLE_SENSITIVITY) |
| 280 | PORT_KEYDELTA(PADDLE_DELTA) |
| 281 | PORT_CENTERDELTA(PADDLE_AUTOCENTER) |
| 282 | PORT_MINMAX(0,0xff) PORT_PLAYER(1) |
| 283 | PORT_CODE_DEC(KEYCODE_4_PAD) PORT_CODE_INC(KEYCODE_6_PAD) |
| 284 | PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) |
| 285 | 285 | |
| 286 | | PORT_START("paddle_1") |
| 287 | | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_NAME("P1 Paddle 1") |
| 288 | | PORT_SENSITIVITY(PADDLE_SENSITIVITY) |
| 289 | | PORT_KEYDELTA(PADDLE_DELTA) |
| 290 | | PORT_CENTERDELTA(PADDLE_AUTOCENTER) |
| 291 | | PORT_MINMAX(0,0xff) PORT_PLAYER(1) |
| 292 | | PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) |
| 293 | | PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) |
| 286 | PORT_START("paddle_1") |
| 287 | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_NAME("P1 Paddle 1") |
| 288 | PORT_SENSITIVITY(PADDLE_SENSITIVITY) |
| 289 | PORT_KEYDELTA(PADDLE_DELTA) |
| 290 | PORT_CENTERDELTA(PADDLE_AUTOCENTER) |
| 291 | PORT_MINMAX(0,0xff) PORT_PLAYER(1) |
| 292 | PORT_CODE_DEC(KEYCODE_8_PAD) PORT_CODE_INC(KEYCODE_2_PAD) |
| 293 | PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) |
| 294 | 294 | |
| 295 | | PORT_START("paddle_2") |
| 296 | | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_NAME("P2 Paddle 0") |
| 297 | | PORT_SENSITIVITY(PADDLE_SENSITIVITY) |
| 298 | | PORT_KEYDELTA(PADDLE_DELTA) |
| 299 | | PORT_CENTERDELTA(PADDLE_AUTOCENTER) |
| 300 | | PORT_MINMAX(0,0xff) PORT_PLAYER(2) |
| 301 | | PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) |
| 295 | PORT_START("paddle_2") |
| 296 | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_NAME("P2 Paddle 0") |
| 297 | PORT_SENSITIVITY(PADDLE_SENSITIVITY) |
| 298 | PORT_KEYDELTA(PADDLE_DELTA) |
| 299 | PORT_CENTERDELTA(PADDLE_AUTOCENTER) |
| 300 | PORT_MINMAX(0,0xff) PORT_PLAYER(2) |
| 301 | PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) |
| 302 | 302 | |
| 303 | | PORT_START("paddle_3") |
| 304 | | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_NAME("P2 Paddle 1") |
| 305 | | PORT_SENSITIVITY(PADDLE_SENSITIVITY) |
| 306 | | PORT_KEYDELTA(PADDLE_DELTA) |
| 307 | | PORT_CENTERDELTA(PADDLE_AUTOCENTER) |
| 308 | | PORT_MINMAX(0,0xff) PORT_PLAYER(2) |
| 309 | | PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) |
| 303 | PORT_START("paddle_3") |
| 304 | PORT_BIT( 0xff, 0x80, IPT_PADDLE) PORT_NAME("P2 Paddle 1") |
| 305 | PORT_SENSITIVITY(PADDLE_SENSITIVITY) |
| 306 | PORT_KEYDELTA(PADDLE_DELTA) |
| 307 | PORT_CENTERDELTA(PADDLE_AUTOCENTER) |
| 308 | PORT_MINMAX(0,0xff) PORT_PLAYER(2) |
| 309 | PORT_CODE_DEC(JOYCODE_Y_UP_SWITCH) PORT_CODE_INC(JOYCODE_Y_DOWN_SWITCH) |
| 310 | 310 | INPUT_PORTS_END |
| 311 | 311 | */ |
| 312 | 312 | static INPUT_PORTS_START( apple2_gameport ) |
| r11839 | r11840 | |
| 865 | 865 | ROM_LOAD ( "341-0027-a.p5", 0x4500, 0x0100, CRC(ce7144f6) SHA1(d4181c9f046aafc3fb326b381baac809d9e38d16)) /* Disk II ROM - DOS 3.3 version */ |
| 866 | 866 | |
| 867 | 867 | ROM_REGION( 0x800, "keyboard", ROMREGION_ERASE00 ) |
| 868 | | // ROM_LOAD_OPTIONAL( "341-0132-a.e12", 0x000, 0x800, CRC(7ded1ac6) SHA1(69f45cd487e8210e37c839df78a0b8930a3a6ac1) ) // 1982 US-DE |
| 869 | | // ROM_LOAD_OPTIONAL( "341-0150-a.e12", 0x000, 0x800, CRC(66ffacd7) SHA1(47bb9608be38ff75429a989b930a93b47099648e) ) // 1982 US-UK |
| 870 | | // ROM_LOAD_OPTIONAL( "341-0151-a.e12", 0x000, 0x800, CRC(64574bb4) SHA1(c44809bbb017bfe3c07dc99e87a3a9fa7b9741c3) ) // 1982 US-DE |
| 871 | | // ROM_LOAD_OPTIONAL( "342-0132-b.e12", 0x000, 0x800, CRC(ecfceb45) SHA1(c2f249589ee02121c27336af022bbca0cc9b2245) ) // 1982 US-Dvorak |
| 872 | | // ROM_LOAD( "342-0132-c.e12", 0x000, 0x800, CRC(e47045f4) SHA1(12a2e718f5f4acd69b6c33a45a4a940b1440a481) ) // 1983 US-Dvorak |
| 868 | // ROM_LOAD_OPTIONAL( "341-0132-a.e12", 0x000, 0x800, CRC(7ded1ac6) SHA1(69f45cd487e8210e37c839df78a0b8930a3a6ac1) ) // 1982 US-DE |
| 869 | // ROM_LOAD_OPTIONAL( "341-0150-a.e12", 0x000, 0x800, CRC(66ffacd7) SHA1(47bb9608be38ff75429a989b930a93b47099648e) ) // 1982 US-UK |
| 870 | // ROM_LOAD_OPTIONAL( "341-0151-a.e12", 0x000, 0x800, CRC(64574bb4) SHA1(c44809bbb017bfe3c07dc99e87a3a9fa7b9741c3) ) // 1982 US-DE |
| 871 | // ROM_LOAD_OPTIONAL( "342-0132-b.e12", 0x000, 0x800, CRC(ecfceb45) SHA1(c2f249589ee02121c27336af022bbca0cc9b2245) ) // 1982 US-Dvorak |
| 872 | // ROM_LOAD( "342-0132-c.e12", 0x000, 0x800, CRC(e47045f4) SHA1(12a2e718f5f4acd69b6c33a45a4a940b1440a481) ) // 1983 US-Dvorak |
| 873 | 873 | ROM_END |
| 874 | 874 | |
| 875 | 875 | ROM_START(apple2ez) |
src/mess/drivers/super6.c
| r11839 | r11840 | |
| 1 | 1 | /* |
| 2 | 2 | |
| 3 | | ADC Super Six SBC |
| 4 | | |
| 5 | | Skeleton driver |
| 6 | | |
| 3 | ADC Super Six SBC |
| 4 | |
| 5 | Skeleton driver |
| 6 | |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | /* |
| 10 | | |
| 11 | | TODO: |
| 12 | | |
| 13 | | - floppy (cannot be implemented currently since this is another case of halting the cpu mid-instruction) |
| 14 | | - interrupts |
| 15 | | - DMA |
| 16 | | - peripheral interfaces |
| 17 | | |
| 10 | |
| 11 | TODO: |
| 12 | |
| 13 | - floppy (cannot be implemented currently since this is another case of halting the cpu mid-instruction) |
| 14 | - interrupts |
| 15 | - DMA |
| 16 | - peripheral interfaces |
| 17 | |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | #include "includes/super6.h" |
| r11839 | r11840 | |
| 36 | 36 | |
| 37 | 37 | // power on jump |
| 38 | 38 | if (!BIT(m_bank0, 6)) { program->install_rom(0x0000, 0x07ff, 0, 0xf800, rom); return; } |
| 39 | | |
| 39 | |
| 40 | 40 | // first 64KB of memory |
| 41 | 41 | program->install_ram(0x0000, 0xffff, ram); |
| 42 | 42 | |
| 43 | 43 | // second 64KB of memory |
| 44 | 44 | int map = (m_bank1 >> 4) & 0x07; |
| 45 | | |
| 45 | |
| 46 | 46 | switch (map) |
| 47 | 47 | { |
| 48 | 48 | case 0: |
| r11839 | r11840 | |
| 80 | 80 | if (BIT(m_bank1, 3)) program->install_ram(0xc000, 0xffff, ram + 0x1c000); |
| 81 | 81 | break; |
| 82 | 82 | } |
| 83 | | |
| 83 | |
| 84 | 84 | // bank 0 overrides |
| 85 | 85 | if (BIT(m_bank0, 0)) program->install_ram(0x0000, 0x3fff, ram + 0x0000); |
| 86 | 86 | if (BIT(m_bank0, 1)) program->install_ram(0x4000, 0x7fff, ram + 0x4000); |
| 87 | 87 | if (BIT(m_bank0, 2)) program->install_ram(0x8000, 0xbfff, ram + 0x8000); |
| 88 | 88 | if (BIT(m_bank0, 3)) program->install_ram(0xc000, 0xffff, ram + 0xc000); |
| 89 | | |
| 89 | |
| 90 | 90 | // PROM enabled |
| 91 | 91 | if (!BIT(m_bank0, 5)) program->install_rom(0xf000, 0xf7ff, 0, 0x800, rom); |
| 92 | 92 | } |
| r11839 | r11840 | |
| 99 | 99 | WRITE8_MEMBER( super6_state::s100_w ) |
| 100 | 100 | { |
| 101 | 101 | /* |
| 102 | | |
| 103 | | bit description |
| 104 | | |
| 105 | | 0 A16 |
| 106 | | 1 A17 |
| 107 | | 2 A18 |
| 108 | | 3 A19 |
| 109 | | 4 A20 |
| 110 | | 5 A21 |
| 111 | | 6 A22 |
| 112 | | 7 A23 |
| 113 | 102 | |
| 114 | | */ |
| 115 | | |
| 103 | bit description |
| 104 | |
| 105 | 0 A16 |
| 106 | 1 A17 |
| 107 | 2 A18 |
| 108 | 3 A19 |
| 109 | 4 A20 |
| 110 | 5 A21 |
| 111 | 6 A22 |
| 112 | 7 A23 |
| 113 | |
| 114 | */ |
| 115 | |
| 116 | 116 | m_s100 = data; |
| 117 | 117 | } |
| 118 | 118 | |
| r11839 | r11840 | |
| 124 | 124 | WRITE8_MEMBER( super6_state::bank0_w ) |
| 125 | 125 | { |
| 126 | 126 | /* |
| 127 | | |
| 128 | | bit description |
| 129 | | |
| 130 | | 0 memory bank 0 (0000-3fff) |
| 131 | | 1 memory bank 1 (4000-7fff) |
| 132 | | 2 memory bank 2 (8000-bfff) |
| 133 | | 3 memory bank 3 (c000-ffff) |
| 134 | | 4 |
| 135 | | 5 PROM enabled (0=enabled, 1=disabled) |
| 136 | | 6 power on jump reset |
| 137 | | 7 parity check enable |
| 138 | 127 | |
| 139 | | */ |
| 140 | | |
| 128 | bit description |
| 129 | |
| 130 | 0 memory bank 0 (0000-3fff) |
| 131 | 1 memory bank 1 (4000-7fff) |
| 132 | 2 memory bank 2 (8000-bfff) |
| 133 | 3 memory bank 3 (c000-ffff) |
| 134 | 4 |
| 135 | 5 PROM enabled (0=enabled, 1=disabled) |
| 136 | 6 power on jump reset |
| 137 | 7 parity check enable |
| 138 | |
| 139 | */ |
| 140 | |
| 141 | 141 | m_bank0 = data; |
| 142 | | |
| 142 | |
| 143 | 143 | bankswitch(); |
| 144 | 144 | } |
| 145 | 145 | |
| r11839 | r11840 | |
| 151 | 151 | WRITE8_MEMBER( super6_state::bank1_w ) |
| 152 | 152 | { |
| 153 | 153 | /* |
| 154 | | |
| 155 | | bit description |
| 156 | | |
| 157 | | 0 memory bank 4 |
| 158 | | 1 memory bank 5 |
| 159 | | 2 memory bank 6 |
| 160 | | 3 memory bank 7 |
| 161 | | 4 map select 0 |
| 162 | | 5 map select 1 |
| 163 | | 6 map select 2 |
| 164 | | 7 |
| 165 | 154 | |
| 166 | | */ |
| 167 | | |
| 155 | bit description |
| 156 | |
| 157 | 0 memory bank 4 |
| 158 | 1 memory bank 5 |
| 159 | 2 memory bank 6 |
| 160 | 3 memory bank 7 |
| 161 | 4 map select 0 |
| 162 | 5 map select 1 |
| 163 | 6 map select 2 |
| 164 | 7 |
| 165 | |
| 166 | */ |
| 167 | |
| 168 | 168 | m_bank1 = data; |
| 169 | | |
| 169 | |
| 170 | 170 | bankswitch(); |
| 171 | 171 | } |
| 172 | 172 | |
| r11839 | r11840 | |
| 183 | 183 | READ8_MEMBER( super6_state::fdc_r ) |
| 184 | 184 | { |
| 185 | 185 | /* |
| 186 | | |
| 187 | | bit description |
| 188 | | |
| 189 | | 0 |
| 190 | | 1 |
| 191 | | 2 |
| 192 | | 3 |
| 193 | | 4 |
| 194 | | 5 |
| 195 | | 6 |
| 196 | | 7 FDC INTRQ |
| 197 | 186 | |
| 198 | | */ |
| 199 | | |
| 187 | bit description |
| 188 | |
| 189 | 0 |
| 190 | 1 |
| 191 | 2 |
| 192 | 3 |
| 193 | 4 |
| 194 | 5 |
| 195 | 6 |
| 196 | 7 FDC INTRQ |
| 197 | |
| 198 | */ |
| 199 | |
| 200 | 200 | // TODO reading this port should halt the CPU until an INTRQ or DRQ from the FDC |
| 201 | 201 | |
| 202 | 202 | return !wd17xx_intrq_r(m_fdc) << 7; |
| r11839 | r11840 | |
| 210 | 210 | WRITE8_MEMBER( super6_state::fdc_w ) |
| 211 | 211 | { |
| 212 | 212 | /* |
| 213 | | |
| 214 | | bit description |
| 215 | | |
| 216 | | 0 disk drive select 0 |
| 217 | | 1 disk drive select 1 |
| 218 | | 2 head select (0=head 1, 1=head 2) |
| 219 | | 3 disk density (0=single, 1=double) |
| 220 | | 4 size select (0=8", 1=5.25") |
| 221 | | 5 |
| 222 | | 6 |
| 223 | | 7 |
| 224 | 213 | |
| 225 | | */ |
| 214 | bit description |
| 226 | 215 | |
| 216 | 0 disk drive select 0 |
| 217 | 1 disk drive select 1 |
| 218 | 2 head select (0=head 1, 1=head 2) |
| 219 | 3 disk density (0=single, 1=double) |
| 220 | 4 size select (0=8", 1=5.25") |
| 221 | 5 |
| 222 | 6 |
| 223 | 7 |
| 224 | |
| 225 | */ |
| 226 | |
| 227 | 227 | // disk drive select |
| 228 | 228 | wd17xx_set_drive(m_fdc, data & 0x03); |
| 229 | 229 | floppy_mon_w(m_floppy0, 0); |
| 230 | 230 | floppy_mon_w(m_floppy1, 0); |
| 231 | | |
| 231 | |
| 232 | 232 | // head select |
| 233 | 233 | wd17xx_set_side(m_fdc, BIT(data, 2)); |
| 234 | | |
| 234 | |
| 235 | 235 | // disk density |
| 236 | 236 | wd17xx_dden_w(m_fdc, !BIT(data, 3)); |
| 237 | 237 | } |
| r11839 | r11840 | |
| 244 | 244 | WRITE8_MEMBER( super6_state::baud_w ) |
| 245 | 245 | { |
| 246 | 246 | /* |
| 247 | | |
| 248 | | bit description |
| 249 | | |
| 250 | | 0 SIO channel A baud bit A |
| 251 | | 1 SIO channel A baud bit B |
| 252 | | 2 SIO channel A baud bit C |
| 253 | | 3 SIO channel A baud bit D |
| 254 | | 4 SIO channel B baud bit A |
| 255 | | 5 SIO channel B baud bit B |
| 256 | | 6 SIO channel B baud bit C |
| 257 | | 7 SIO channel B baud bit D |
| 258 | 247 | |
| 259 | | */ |
| 248 | bit description |
| 260 | 249 | |
| 250 | 0 SIO channel A baud bit A |
| 251 | 1 SIO channel A baud bit B |
| 252 | 2 SIO channel A baud bit C |
| 253 | 3 SIO channel A baud bit D |
| 254 | 4 SIO channel B baud bit A |
| 255 | 5 SIO channel B baud bit B |
| 256 | 6 SIO channel B baud bit C |
| 257 | 7 SIO channel B baud bit D |
| 258 | |
| 259 | */ |
| 260 | |
| 261 | 261 | m_brg->str_w(space, 0, data & 0x0f); |
| 262 | 262 | m_brg->stt_w(space, 0, data >> 4); |
| 263 | 263 | } |
| r11839 | r11840 | |
| 292 | 292 | AM_RANGE(0x16, 0x16) AM_WRITE(bank0_w) |
| 293 | 293 | AM_RANGE(0x17, 0x17) AM_WRITE(bank1_w) |
| 294 | 294 | AM_RANGE(0x18, 0x18) AM_MIRROR(0x03) AM_WRITE(baud_w) |
| 295 | | // AM_RANGE(0x40, 0x40) ? |
| 296 | | // AM_RANGE(0xe0, 0xe7) HDC? |
| 295 | // AM_RANGE(0x40, 0x40) ? |
| 296 | // AM_RANGE(0xe0, 0xe7) HDC? |
| 297 | 297 | ADDRESS_MAP_END |
| 298 | 298 | |
| 299 | 299 | |
| r11839 | r11840 | |
| 436 | 436 | { |
| 437 | 437 | z80dart_rxca_w(m_dart, state); |
| 438 | 438 | z80dart_txca_w(m_dart, state); |
| 439 | | |
| 439 | |
| 440 | 440 | z80ctc_trg1_w(m_ctc, state); |
| 441 | 441 | } |
| 442 | 442 | |
| r11839 | r11840 | |
| 481 | 481 | WRITE_LINE_MEMBER( super6_state::drq_w ) |
| 482 | 482 | { |
| 483 | 483 | // TODO allow CPU to continue reading port 14 |
| 484 | | |
| 484 | |
| 485 | 485 | m_dma->rdy_w(state); |
| 486 | 486 | } |
| 487 | 487 | |
| r11839 | r11840 | |
| 547 | 547 | void super6_state::machine_reset() |
| 548 | 548 | { |
| 549 | 549 | m_bank0 = m_bank1 = 0; |
| 550 | | |
| 550 | |
| 551 | 551 | bankswitch(); |
| 552 | 552 | } |
| 553 | 553 | |
| r11839 | r11840 | |
| 570 | 570 | |
| 571 | 571 | // video hardware |
| 572 | 572 | MCFG_FRAGMENT_ADD(generic_terminal) |
| 573 | | |
| 573 | |
| 574 | 574 | // devices |
| 575 | 575 | MCFG_Z80CTC_ADD(Z80CTC_TAG, XTAL_24MHz/4, ctc_intf) |
| 576 | 576 | MCFG_TIMER_ADD_PERIODIC("ctc", ctc_tick, attotime::from_hz(XTAL_24MHz/16)) |