trunk/src/mess/machine/mos8722.c
| r17760 | r17761 | |
| 158 | 158 | |
| 159 | 159 | READ8_MEMBER( mos8722_device::read ) |
| 160 | 160 | { |
| 161 | | return 0; |
| 161 | UINT8 data = 0; |
| 162 | |
| 163 | if (!MCR_C64) |
| 164 | { |
| 165 | |
| 166 | } |
| 167 | |
| 168 | return data; |
| 162 | 169 | } |
| 163 | 170 | |
| 164 | 171 | |
| r17760 | r17761 | |
| 168 | 175 | |
| 169 | 176 | WRITE8_MEMBER( mos8722_device::write ) |
| 170 | 177 | { |
| 178 | if (!MCR_C64) |
| 179 | { |
| 180 | |
| 181 | } |
| 171 | 182 | } |
| 172 | 183 | |
| 173 | 184 | |
| r17760 | r17761 | |
| 177 | 188 | |
| 178 | 189 | READ_LINE_MEMBER( mos8722_device::fsdir_r ) |
| 179 | 190 | { |
| 180 | | return 1; |
| 191 | return MCR_FSDIR; |
| 181 | 192 | } |
| 182 | 193 | |
| 183 | 194 | |
| 184 | 195 | //------------------------------------------------- |
| 185 | | // ms0_r - memory status 0 read |
| 196 | // ta_r - translated address read |
| 186 | 197 | //------------------------------------------------- |
| 187 | 198 | |
| 188 | | READ_LINE_MEMBER( mos8722_device::ms0_r ) |
| 199 | offs_t mos8722_device::ta_r(offs_t offset, int aec, int *ms0, int *ms1, int *ms2, int *ms3) |
| 189 | 200 | { |
| 190 | | return 1; |
| 191 | | } |
| 201 | offs_t ta = offset; |
| 192 | 202 | |
| 203 | if (aec) |
| 204 | { |
| 205 | if (MCR_C64) |
| 206 | { |
| 207 | *ms0 = 1; |
| 208 | *ms1 = 1; |
| 209 | } |
| 193 | 210 | |
| 194 | | //------------------------------------------------- |
| 195 | | // ms1_r - memory status 1 read |
| 196 | | //------------------------------------------------- |
| 211 | *ms3 = !MCR_C64; |
| 212 | } |
| 197 | 213 | |
| 198 | | READ_LINE_MEMBER( mos8722_device::ms1_r ) |
| 199 | | { |
| 200 | | return 1; |
| 214 | return ta; |
| 201 | 215 | } |
| 202 | | |
| 203 | | |
| 204 | | //------------------------------------------------- |
| 205 | | // ms2_r - memory status 2 read |
| 206 | | //------------------------------------------------- |
| 207 | | |
| 208 | | READ_LINE_MEMBER( mos8722_device::ms2_r ) |
| 209 | | { |
| 210 | | return 1; |
| 211 | | } |
| 212 | | |
| 213 | | |
| 214 | | //------------------------------------------------- |
| 215 | | // ms3_r - memory status 3 read |
| 216 | | //------------------------------------------------- |
| 217 | | |
| 218 | | READ_LINE_MEMBER( mos8722_device::ms3_r ) |
| 219 | | { |
| 220 | | return 1; |
| 221 | | } |
| 222 | | |
| 223 | | |
| 224 | | //------------------------------------------------- |
| 225 | | // ta_r - translated address read |
| 226 | | //------------------------------------------------- |
| 227 | | |
| 228 | | offs_t mos8722_device::ta_r(offs_t offset, int aec) |
| 229 | | { |
| 230 | | return offset; |
| 231 | | } |
trunk/src/mess/machine/mos8722.h
| r17760 | r17761 | |
| 86 | 86 | DECLARE_WRITE8_MEMBER( write ); |
| 87 | 87 | |
| 88 | 88 | DECLARE_READ_LINE_MEMBER( fsdir_r ); |
| 89 | | DECLARE_READ_LINE_MEMBER( ms0_r ); |
| 90 | | DECLARE_READ_LINE_MEMBER( ms1_r ); |
| 91 | | DECLARE_READ_LINE_MEMBER( ms2_r ); |
| 92 | | DECLARE_READ_LINE_MEMBER( ms3_r ); |
| 93 | 89 | |
| 94 | | offs_t ta_r(offs_t offset, int aec); |
| 90 | offs_t ta_r(offs_t offset, int aec, int *ms0, int *ms1, int *ms2, int *ms3); |
| 95 | 91 | |
| 96 | 92 | protected: |
| 97 | 93 | // device-level overrides |