src/mess/machine/amstr_pc.c
| r15298 | r15299 | |
| 6 | 6 | #include "includes/amstr_pc.h" |
| 7 | 7 | #include "includes/pc.h" |
| 8 | 8 | #include "video/pc_vga.h" |
| 9 | | #include "memconv.h" |
| 10 | 9 | |
| 11 | 10 | |
| 12 | 11 | /* pc20 (v2) |
| r15298 | r15299 | |
| 175 | 174 | } |
| 176 | 175 | |
| 177 | 176 | |
| 178 | | READ8_HANDLER( pc1640_port60_r ) |
| 177 | READ8_HANDLER( pc1640_port60_r ) |
| 179 | 178 | { |
| 180 | 179 | int data=0; |
| 181 | 180 | switch (offset) { |
| r15298 | r15299 | |
| 212 | 211 | return data; |
| 213 | 212 | } |
| 214 | 213 | |
| 215 | | static READ8_HANDLER( pc200_port278_r ) |
| 214 | READ8_HANDLER( pc200_port278_r ) |
| 216 | 215 | { |
| 217 | 216 | device_t *lpt = space->machine().device("lpt_2"); |
| 218 | 217 | UINT8 data = pc_lpt_r(lpt, offset); |
| r15298 | r15299 | |
| 252 | 251 | return data; |
| 253 | 252 | } |
| 254 | 253 | |
| 255 | | READ8_HANDLER( pc1640_port3d0_r ) |
| 254 | READ8_HANDLER( pc1640_port3d0_r ) |
| 256 | 255 | { |
| 257 | 256 | if (offset==0xa) pc1640.dipstate=0; |
| 258 | 257 | return space->read_byte(0x3d0+offset); |
| 259 | 258 | } |
| 260 | 259 | |
| 261 | | READ8_HANDLER( pc1640_port4278_r ) |
| 260 | READ8_HANDLER( pc1640_port4278_r ) |
| 262 | 261 | { |
| 263 | 262 | if (offset==2) pc1640.dipstate=1; |
| 264 | 263 | // read parallelport |
| r15298 | r15299 | |
| 272 | 271 | return 0; |
| 273 | 272 | } |
| 274 | 273 | |
| 275 | | static READ8_HANDLER( pc1640_mouse_x_r ) |
| 274 | READ8_HANDLER( pc1640_mouse_x_r ) |
| 276 | 275 | { |
| 277 | 276 | return pc1640.mouse.x - space->machine().root_device().ioport("pc_mouse_x")->read(); |
| 278 | 277 | } |
| 279 | 278 | |
| 280 | | static READ8_HANDLER( pc1640_mouse_y_r ) |
| 279 | READ8_HANDLER( pc1640_mouse_y_r ) |
| 281 | 280 | { |
| 282 | 281 | return pc1640.mouse.y - space->machine().root_device().ioport("pc_mouse_y")->read(); |
| 283 | 282 | } |
| 284 | 283 | |
| 285 | | static WRITE8_HANDLER( pc1640_mouse_x_w ) |
| 284 | WRITE8_HANDLER( pc1640_mouse_x_w ) |
| 286 | 285 | { |
| 287 | 286 | pc1640.mouse.x = data + space->machine().root_device().ioport("pc_mouse_x")->read(); |
| 288 | 287 | } |
| 289 | 288 | |
| 290 | | static WRITE8_HANDLER( pc1640_mouse_y_w ) |
| 289 | WRITE8_HANDLER( pc1640_mouse_y_w ) |
| 291 | 290 | { |
| 292 | 291 | pc1640.mouse.y = data + space->machine().root_device().ioport("pc_mouse_y")->read(); |
| 293 | 292 | } |
| 294 | 293 | |
| 295 | | READ16_HANDLER( pc1640_16le_mouse_x_r ) { return read16le_with_read8_handler(pc1640_mouse_x_r, space, offset, mem_mask); } |
| 296 | | READ16_HANDLER( pc1640_16le_mouse_y_r ) { return read16le_with_read8_handler(pc1640_mouse_y_r, space, offset, mem_mask); } |
| 297 | | WRITE16_HANDLER( pc1640_16le_mouse_x_w ) { write16le_with_write8_handler(pc1640_mouse_x_w, space, offset, data, mem_mask); } |
| 298 | | WRITE16_HANDLER( pc1640_16le_mouse_y_w ) { write16le_with_write8_handler(pc1640_mouse_y_w, space, offset, data, mem_mask); } |
| 299 | | |
| 300 | 294 | INPUT_PORTS_START( amstrad_keyboard ) |
| 301 | 295 | |
| 302 | 296 | PORT_START("pc_keyboard_0") |
| r15298 | r15299 | |
| 424 | 418 | PORT_BIT( 0xff, 0x00, IPT_MOUSE_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1) |
| 425 | 419 | |
| 426 | 420 | INPUT_PORTS_END |
| 427 | | |
| 428 | | |
| 429 | | READ16_HANDLER( pc1640_16le_port60_r ) { return read16le_with_read8_handler(pc1640_port60_r, space, offset, mem_mask); } |
| 430 | | WRITE16_HANDLER( pc1640_16le_port60_w ) { write16le_with_write8_handler(pc1640_port60_w, space, offset, data, mem_mask); } |
| 431 | | |
| 432 | | READ16_HANDLER( pc200_16le_port278_r ) { return read16le_with_read8_handler(pc200_port278_r, space, offset, mem_mask); } |
| 433 | | READ16_HANDLER( pc200_16le_port378_r ) { return read16le_with_read8_handler(pc200_port378_r, space, offset, mem_mask); } |
| 434 | | READ16_HANDLER( pc1640_16le_port378_r ) { return read16le_with_read8_handler(pc1640_port378_r, space, offset, mem_mask); } |
| 435 | | READ16_HANDLER( pc1640_16le_port3d0_r ) { return read16le_with_read8_handler(pc1640_port3d0_r, space, offset, mem_mask); } |
| 436 | | READ16_HANDLER( pc1640_16le_port4278_r ) { return read16le_with_read8_handler(pc1640_port4278_r, space, offset, mem_mask); } |
| 437 | | READ16_HANDLER( pc1640_16le_port278_r ) { return read16le_with_read8_handler(pc1640_port278_r, space, offset, mem_mask); } |
src/mess/includes/amstr_pc.h
| r15298 | r15299 | |
| 16 | 16 | |
| 17 | 17 | READ8_HANDLER( pc1640_port60_r ); |
| 18 | 18 | WRITE8_HANDLER( pc1640_port60_w ); |
| 19 | | READ16_HANDLER( pc1640_16le_port60_r ); |
| 20 | | WRITE16_HANDLER( pc1640_16le_port60_w ); |
| 21 | 19 | |
| 22 | | READ16_HANDLER( pc1640_16le_mouse_x_r ); |
| 23 | | READ16_HANDLER( pc1640_16le_mouse_y_r ); |
| 24 | | WRITE16_HANDLER( pc1640_16le_mouse_x_w ); |
| 25 | | WRITE16_HANDLER( pc1640_16le_mouse_y_w ); |
| 20 | READ8_HANDLER( pc1640_mouse_x_r ); |
| 21 | READ8_HANDLER( pc1640_mouse_y_r ); |
| 22 | WRITE8_HANDLER( pc1640_mouse_x_w ); |
| 23 | WRITE8_HANDLER( pc1640_mouse_y_w ); |
| 26 | 24 | |
| 27 | | READ8_HANDLER( pc1640_port3d0_r ); |
| 28 | 25 | READ8_HANDLER( pc200_port378_r ); |
| 26 | READ8_HANDLER( pc200_port278_r ); |
| 29 | 27 | READ8_HANDLER( pc1640_port378_r ); |
| 28 | READ8_HANDLER( pc1640_port3d0_r ); |
| 30 | 29 | READ8_HANDLER( pc1640_port4278_r ); |
| 31 | 30 | READ8_HANDLER( pc1640_port278_r ); |
| 32 | 31 | |
| 33 | | READ16_HANDLER( pc200_16le_port378_r ); |
| 34 | | READ16_HANDLER( pc200_16le_port278_r ); |
| 35 | | READ16_HANDLER( pc1640_16le_port378_r ); |
| 36 | | READ16_HANDLER( pc1640_16le_port3d0_r ); |
| 37 | | READ16_HANDLER( pc1640_16le_port4278_r ); |
| 38 | | READ16_HANDLER( pc1640_16le_port278_r ); |
| 39 | | |
| 40 | 32 | INPUT_PORTS_EXTERN( amstrad_keyboard ); |
| 41 | 33 | |
| 42 | 34 | |
src/mess/video/pc_t1t.c
| r15298 | r15299 | |
| 13 | 13 | #include "video/mc6845.h" |
| 14 | 14 | #include "machine/pic8259.h" |
| 15 | 15 | #include "machine/ram.h" |
| 16 | | #include "memconv.h" |
| 17 | 16 | |
| 18 | 17 | /*************************************************************************** |
| 19 | 18 | |
| r15298 | r15299 | |
| 920 | 919 | pic8259_ir5_w(device->machine().device("pic8259"), state); |
| 921 | 920 | } |
| 922 | 921 | |
| 923 | | READ16_HANDLER( pc_t1t_videoram16le_r ) { return read16le_with_read8_handler(pc_t1t_videoram_r, space, offset, mem_mask); } |
| 924 | | WRITE16_HANDLER( pc_t1t_videoram16le_w ) { write16le_with_write8_handler(pc_t1t_videoram_w, space, offset, data, mem_mask); } |
| 925 | | |
| 926 | | READ16_HANDLER( pc_T1T16le_r ) { return read16le_with_read8_handler(pc_T1T_r, space, offset, mem_mask); } |
| 927 | | WRITE16_HANDLER( pc_T1T16le_w ) { write16le_with_write8_handler(pc_T1T_w, space, offset, data, mem_mask); } |
| 928 | | |
| 929 | 922 | static VIDEO_START( pc_t1t ) |
| 930 | 923 | { |
| 931 | 924 | int buswidth; |
| r15298 | r15299 | |
| 946 | 939 | break; |
| 947 | 940 | |
| 948 | 941 | case 16: |
| 949 | | space->install_legacy_readwrite_handler(0xb8000, 0xbffff, FUNC(pc_t1t_videoram16le_r), FUNC(pc_t1t_videoram16le_w) ); |
| 950 | | spaceio->install_legacy_readwrite_handler(0x3d0, 0x3df, FUNC(pc_T1T16le_r),FUNC(pc_T1T16le_w) ); |
| 942 | space->install_legacy_readwrite_handler(0xb8000, 0xbffff, FUNC(pc_t1t_videoram_r), FUNC(pc_t1t_videoram_w), 0xffff ); |
| 943 | spaceio->install_legacy_readwrite_handler(0x3d0, 0x3df, FUNC(pc_T1T_r),FUNC(pc_T1T_w), 0xffff ); |
| 951 | 944 | break; |
| 952 | 945 | |
| 953 | 946 | default: |
src/mess/video/pc_aga.c
| r15298 | r15299 | |
| 5 | 5 | ****************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "emu.h" |
| 8 | | #include "memconv.h" |
| 9 | 8 | #include "video/pc_aga.h" |
| 10 | 9 | #include "video/pc_cga.h" |
| 11 | 10 | #include "includes/amstr_pc.h" |
| r15298 | r15299 | |
| 667 | 666 | } |
| 668 | 667 | } |
| 669 | 668 | |
| 670 | | |
| 671 | | static READ16_HANDLER ( pc16le_aga_mda_r ) { return read16le_with_read8_handler(pc_aga_mda_r, space, offset, mem_mask); } |
| 672 | | static WRITE16_HANDLER ( pc16le_aga_mda_w ) { write16le_with_write8_handler(pc_aga_mda_w, space, offset, data, mem_mask); } |
| 673 | | static READ16_HANDLER ( pc16le_aga_cga_r ) { return read16le_with_read8_handler(pc_aga_cga_r, space, offset, mem_mask); } |
| 674 | | static WRITE16_HANDLER ( pc16le_aga_cga_w ) { write16le_with_write8_handler(pc_aga_cga_w, space, offset, data, mem_mask); } |
| 675 | | |
| 676 | | |
| 677 | | |
| 678 | 669 | /*************************************/ |
| 679 | 670 | |
| 680 | 671 | void pc_aga_set_mode(running_machine &machine, AGA_MODE mode) |
| r15298 | r15299 | |
| 710 | 701 | break; |
| 711 | 702 | |
| 712 | 703 | case 16: |
| 713 | | space->install_legacy_readwrite_handler(0xb0000, 0xbffff, FUNC(pc200_videoram16le_r), FUNC(pc200_videoram16le_w) ); |
| 714 | | spaceio->install_legacy_readwrite_handler(0x3b0, 0x3bf, FUNC(pc16le_aga_mda_r), FUNC(pc16le_aga_mda_w) ); |
| 715 | | spaceio->install_legacy_readwrite_handler(0x3d0, 0x3df, FUNC(pc16le_aga_cga_r), FUNC(pc16le_aga_cga_w) ); |
| 704 | space->install_legacy_readwrite_handler(0xb0000, 0xbffff, FUNC(pc200_videoram_r), FUNC(pc200_videoram_w), 0xffff ); |
| 705 | spaceio->install_legacy_readwrite_handler(0x3b0, 0x3bf, FUNC(pc_aga_mda_r), FUNC(pc_aga_mda_w), 0xffff ); |
| 706 | spaceio->install_legacy_readwrite_handler(0x3d0, 0x3df, FUNC(pc_aga_cga_r), FUNC(pc_aga_cga_w), 0xffff ); |
| 716 | 707 | break; |
| 717 | 708 | |
| 718 | 709 | default: |
| r15298 | r15299 | |
| 727 | 718 | aga.videoram = auto_alloc_array(machine, UINT8, 0x10000); |
| 728 | 719 | } |
| 729 | 720 | |
| 730 | | READ16_HANDLER( pc_aga_videoram16le_r ) { return read16le_with_read8_handler(pc_aga_videoram_r, space, offset, mem_mask); } |
| 731 | | WRITE16_HANDLER( pc_aga_videoram16le_w ) { write16le_with_write8_handler(pc_aga_videoram_w, space, offset, data, mem_mask); } |
| 732 | | |
| 733 | 721 | VIDEO_START( pc200 ) |
| 734 | 722 | { |
| 735 | 723 | address_space *space = machine.firstcpu->memory().space(AS_PROGRAM); |
| r15298 | r15299 | |
| 744 | 732 | break; |
| 745 | 733 | |
| 746 | 734 | case 16: |
| 747 | | space->install_legacy_readwrite_handler(0xb0000, 0xbffff, FUNC(pc_aga_videoram16le_r), FUNC(pc_aga_videoram16le_w) ); |
| 748 | | spaceio->install_legacy_readwrite_handler(0x3b0, 0x3bf, FUNC(pc16le_aga_mda_r), FUNC(pc16le_aga_mda_w) ); |
| 749 | | spaceio->install_legacy_readwrite_handler(0x3d0, 0x3df, FUNC(pc200_cga16le_r), FUNC(pc200_cga16le_w) ); |
| 735 | space->install_legacy_readwrite_handler(0xb0000, 0xbffff, FUNC(pc_aga_videoram_r), FUNC(pc_aga_videoram_w), 0xffff ); |
| 736 | spaceio->install_legacy_readwrite_handler(0x3b0, 0x3bf, FUNC(pc_aga_mda_r), FUNC(pc_aga_mda_w), 0xffff ); |
| 737 | spaceio->install_legacy_readwrite_handler(0x3d0, 0x3df, FUNC(pc200_cga_r), FUNC(pc200_cga_w), 0xffff ); |
| 750 | 738 | break; |
| 751 | 739 | |
| 752 | 740 | default: |
| r15298 | r15299 | |
| 818 | 806 | } |
| 819 | 807 | } |
| 820 | 808 | |
| 821 | | READ16_HANDLER( pc200_videoram16le_r ) { return read16le_with_read8_handler(pc200_videoram_r, space, offset, mem_mask); } |
| 822 | | WRITE16_HANDLER( pc200_videoram16le_w ) { write16le_with_write8_handler(pc200_videoram_w, space, offset, data, mem_mask); } |
| 823 | | |
| 824 | | |
| 825 | 809 | static struct { |
| 826 | 810 | UINT8 port8, portd, porte; |
| 827 | 811 | } pc200= { 0 }; |
| r15298 | r15299 | |
| 893 | 877 | } |
| 894 | 878 | return result; |
| 895 | 879 | } |
| 896 | | |
| 897 | | READ16_HANDLER( pc200_cga16le_r ) { return read16le_with_read8_handler(pc200_cga_r, space, offset, mem_mask); } |
| 898 | | WRITE16_HANDLER( pc200_cga16le_w ) { write16le_with_write8_handler(pc200_cga_w, space, offset, data, mem_mask); } |
src/mess/drivers/amstr_pc.c
| r15298 | r15299 | |
| 83 | 83 | AM_RANGE(0x0000, 0x000f) AM_DEVREADWRITE8_LEGACY("dma8237", i8237_r, i8237_w, 0xffff) |
| 84 | 84 | AM_RANGE(0x0020, 0x0021) AM_DEVREADWRITE8_LEGACY("pic8259", pic8259_r, pic8259_w, 0xffff) |
| 85 | 85 | AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE8_LEGACY("pit8253", pit8253_r, pit8253_w, 0xffff) |
| 86 | | AM_RANGE(0x0060, 0x0065) AM_READWRITE_LEGACY(pc1640_16le_port60_r, pc1640_16le_port60_w) |
| 86 | AM_RANGE(0x0060, 0x0065) AM_READWRITE8_LEGACY(pc1640_port60_r, pc1640_port60_w, 0xffff) |
| 87 | 87 | AM_RANGE(0x0070, 0x0071) AM_DEVREADWRITE8("rtc", mc146818_device, read, write, 0xffff) |
| 88 | | AM_RANGE(0x0078, 0x0079) AM_READWRITE_LEGACY(pc1640_16le_mouse_x_r, pc1640_16le_mouse_x_w) |
| 89 | | AM_RANGE(0x007a, 0x007b) AM_READWRITE_LEGACY(pc1640_16le_mouse_y_r, pc1640_16le_mouse_y_w) |
| 90 | | AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r, pc_page_w, 0xffff) |
| 91 | | AM_RANGE(0x0200, 0x0207) AM_READWRITE_LEGACY(pc16le_JOY_r, pc16le_JOY_w) |
| 92 | | AM_RANGE(0x0278, 0x027b) AM_READ_LEGACY(pc200_16le_port278_r) AM_DEVWRITE8_LEGACY("lpt_2", pc_lpt_w, 0x00ff) |
| 88 | AM_RANGE(0x0078, 0x0079) AM_READWRITE8_LEGACY(pc1640_mouse_x_r, pc1640_mouse_x_w, 0xffff) |
| 89 | AM_RANGE(0x007a, 0x007b) AM_READWRITE8_LEGACY(pc1640_mouse_y_r, pc1640_mouse_y_w, 0xffff) |
| 90 | AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r, pc_page_w, 0xffff) |
| 91 | AM_RANGE(0x0200, 0x0207) AM_READWRITE8_LEGACY(pc_JOY_r, pc_JOY_w, 0xffff) |
| 92 | AM_RANGE(0x0278, 0x027b) AM_READ8_LEGACY(pc200_port278_r, 0xffff) AM_DEVWRITE8_LEGACY("lpt_2", pc_lpt_w, 0x00ff) |
| 93 | 93 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE8("ins8250_3", ins8250_device, ins8250_r, ins8250_w, 0xffff) |
| 94 | 94 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8("ins8250_1", ins8250_device, ins8250_r, ins8250_w, 0xffff) |
| 95 | | AM_RANGE(0x0378, 0x037b) AM_READ_LEGACY(pc200_16le_port378_r) AM_DEVWRITE8_LEGACY("lpt_1", pc_lpt_w, 0x00ff) |
| 95 | AM_RANGE(0x0378, 0x037b) AM_READ8_LEGACY(pc200_port378_r, 0xffff) AM_DEVWRITE8_LEGACY("lpt_1", pc_lpt_w, 0x00ff) |
| 96 | 96 | AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8_LEGACY("lpt_0", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 97 | 97 | AM_RANGE(0x03e8, 0x03ef) AM_DEVREADWRITE8("ins8250_2", ins8250_device, ins8250_r, ins8250_w, 0xffff) |
| 98 | 98 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE8_LEGACY(pc_fdc_r, pc_fdc_w, 0xffff) |
| r15298 | r15299 | |
| 112 | 112 | AM_RANGE(0x0000, 0x000f) AM_DEVREADWRITE8_LEGACY("dma8237", i8237_r, i8237_w, 0xffff) |
| 113 | 113 | AM_RANGE(0x0020, 0x0021) AM_DEVREADWRITE8_LEGACY("pic8259", pic8259_r, pic8259_w, 0xffff) |
| 114 | 114 | AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE8_LEGACY("pit8253", pit8253_r, pit8253_w, 0xffff) |
| 115 | | AM_RANGE(0x0060, 0x0065) AM_READWRITE_LEGACY(pc1640_16le_port60_r, pc1640_16le_port60_w) |
| 116 | | AM_RANGE(0x0078, 0x0079) AM_READWRITE_LEGACY(pc1640_16le_mouse_x_r, pc1640_16le_mouse_x_w) |
| 117 | | AM_RANGE(0x007a, 0x007b) AM_READWRITE_LEGACY(pc1640_16le_mouse_y_r, pc1640_16le_mouse_y_w) |
| 118 | | AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r, pc_page_w, 0xffff) |
| 119 | | AM_RANGE(0x0200, 0x0207) AM_READWRITE_LEGACY(pc16le_JOY_r, pc16le_JOY_w) |
| 120 | | AM_RANGE(0x0278, 0x027b) AM_READ_LEGACY(pc200_16le_port278_r) AM_DEVWRITE8_LEGACY("lpt_2", pc_lpt_w, 0x00ff) |
| 115 | AM_RANGE(0x0060, 0x0065) AM_READWRITE8_LEGACY(pc1640_port60_r, pc1640_port60_w, 0xffff) |
| 116 | AM_RANGE(0x0078, 0x0079) AM_READWRITE8_LEGACY(pc1640_mouse_x_r, pc1640_mouse_x_w, 0xffff) |
| 117 | AM_RANGE(0x007a, 0x007b) AM_READWRITE8_LEGACY(pc1640_mouse_y_r, pc1640_mouse_y_w, 0xffff) |
| 118 | AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r, pc_page_w, 0xffff) |
| 119 | AM_RANGE(0x0200, 0x0207) AM_READWRITE8_LEGACY(pc_JOY_r, pc_JOY_w, 0xffff) |
| 120 | AM_RANGE(0x0278, 0x027b) AM_READ8_LEGACY(pc200_port278_r, 0xffff) AM_DEVWRITE8_LEGACY("lpt_2", pc_lpt_w, 0x00ff) |
| 121 | 121 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE8("ins8250_3", ins8250_device, ins8250_r, ins8250_w, 0xffff) |
| 122 | 122 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8("ins8250_1", ins8250_device, ins8250_r, ins8250_w, 0xffff) |
| 123 | | AM_RANGE(0x0378, 0x037b) AM_READ_LEGACY(pc200_16le_port378_r) AM_DEVWRITE8_LEGACY("lpt_1", pc_lpt_w, 0x00ff) |
| 123 | AM_RANGE(0x0378, 0x037b) AM_READ8_LEGACY(pc200_port378_r, 0xffff) AM_DEVWRITE8_LEGACY("lpt_1", pc_lpt_w, 0x00ff) |
| 124 | 124 | AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8_LEGACY("lpt_0", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 125 | 125 | AM_RANGE(0x03e8, 0x03ef) AM_DEVREADWRITE8("ins8250_2", ins8250_device, ins8250_r, ins8250_w, 0xffff) |
| 126 | 126 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE8_LEGACY(pc_fdc_r, pc_fdc_w, 0xffff) |
src/mess/drivers/pc.c
| r15298 | r15299 | |
| 186 | 186 | AM_RANGE(0x0070, 0x007f) AM_RAM // needed for Poisk-2 |
| 187 | 187 | AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r, pc_page_w, 0xffff) |
| 188 | 188 | AM_RANGE(0x00a0, 0x00a1) AM_WRITE8(pc_nmi_enable_w, 0x00ff ) |
| 189 | | AM_RANGE(0x0200, 0x0207) AM_READWRITE_LEGACY(pc16le_JOY_r, pc16le_JOY_w) |
| 189 | AM_RANGE(0x0200, 0x0207) AM_READWRITE8_LEGACY(pc_JOY_r, pc_JOY_w, 0xffff) |
| 190 | 190 | AM_RANGE(0x0240, 0x0257) AM_READWRITE8(pc_rtc_r, pc_rtc_w, 0xffff) |
| 191 | 191 | AM_RANGE(0x0278, 0x027b) AM_DEVREADWRITE8_LEGACY("lpt_2", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 192 | 192 | AM_RANGE(0x02b0, 0x02bf) AM_RAM // needed for EC-18xx |
| r15298 | r15299 | |
| 222 | 222 | AM_RANGE(0x0070, 0x007f) AM_RAM // needed for Poisk-2 |
| 223 | 223 | AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r, pc_page_w, 0xffff) |
| 224 | 224 | AM_RANGE(0x00a0, 0x00a1) AM_READWRITE8(unk_r, pc_nmi_enable_w, 0x00ff ) |
| 225 | | AM_RANGE(0x0200, 0x0207) AM_READWRITE_LEGACY(pc16le_JOY_r, pc16le_JOY_w) |
| 225 | AM_RANGE(0x0200, 0x0207) AM_READWRITE8_LEGACY(pc_JOY_r, pc_JOY_w, 0xffff) |
| 226 | 226 | AM_RANGE(0x0240, 0x0257) AM_READWRITE8(pc_rtc_r, pc_rtc_w, 0xffff) |
| 227 | 227 | AM_RANGE(0x0278, 0x027b) AM_DEVREADWRITE8_LEGACY("lpt_2", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 228 | 228 | AM_RANGE(0x02b0, 0x02bf) AM_RAM // needed for EC-18xx |