src/mess/drivers/rm380z.c
| r13893 | r13894 | |
| 90 | 90 | { |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | | void port_1bfc_write(int offset,UINT8 data); |
| 94 | | UINT8 port_1bfc_read(int offset); |
| 95 | | |
| 96 | 93 | DECLARE_READ8_MEMBER( port_fbfc_read ); |
| 97 | 94 | DECLARE_WRITE8_MEMBER( port_fbfc_write ); |
| 98 | 95 | |
| 99 | | void port_write(int offset,UINT8 data); |
| 100 | | UINT8 port_read(int offset); |
| 101 | | |
| 102 | 96 | DECLARE_READ8_MEMBER( main_read ); |
| 103 | 97 | DECLARE_WRITE8_MEMBER( main_write ); |
| 104 | 98 | |
| r13893 | r13894 | |
| 110 | 104 | int keyboard_decode(); |
| 111 | 105 | }; |
| 112 | 106 | |
| 113 | | // |
| 114 | | |
| 115 | | void rm380z_state::port_1bfc_write(int offset,UINT8 data) |
| 116 | | { |
| 117 | | port_write(offset, data ); |
| 118 | | } |
| 119 | | |
| 120 | | UINT8 rm380z_state::port_1bfc_read(int offset) |
| 121 | | { |
| 122 | | return port_read(offset ); |
| 123 | | } |
| 124 | | |
| 125 | 107 | WRITE8_MEMBER( rm380z_state::port_fbfc_write ) |
| 126 | 108 | { |
| 127 | | port_write(offset, data ); |
| 128 | | } |
| 129 | | |
| 130 | | READ8_MEMBER( rm380z_state::port_fbfc_read ) |
| 131 | | { |
| 132 | | return port_read(offset ); |
| 133 | | } |
| 134 | | |
| 135 | | void rm380z_state::port_write(int offset,UINT8 data) |
| 136 | | { |
| 137 | 109 | switch ( offset ) |
| 138 | 110 | { |
| 139 | 111 | case 0x00: // PORT0 |
| r13893 | r13894 | |
| 161 | 133 | break; |
| 162 | 134 | } |
| 163 | 135 | } |
| 164 | | |
| 165 | | UINT8 rm380z_state::port_read(int offset) |
| 136 | READ8_MEMBER( rm380z_state::port_fbfc_read ) |
| 166 | 137 | { |
| 167 | 138 | UINT8 data = 0xFF; |
| 168 | 139 | |
| r13893 | r13894 | |
| 266 | 237 | { |
| 267 | 238 | if ((offset>=0x1bfc)&&(offset<=0x1bff)) |
| 268 | 239 | { |
| 269 | | state->port_1bfc_write(offset-0x1bfc,data); |
| 240 | state->port_fbfc_write(space,offset-0x1bfc,data); |
| 270 | 241 | return; |
| 271 | 242 | } |
| 272 | 243 | |
| r13893 | r13894 | |
| 315 | 286 | { |
| 316 | 287 | if ((offset>=0x1bfc)&&(offset<=0x1bff)) |
| 317 | 288 | { |
| 318 | | return state->port_1bfc_read(offset-0x1bfc); |
| 289 | return state->port_fbfc_read(space,offset-0x1bfc); |
| 319 | 290 | } |
| 320 | 291 | |
| 321 | 292 | if ((offset>=0x0000)&&(offset<0x1000)) |