trunk/src/mame/drivers/stv.c
| r21051 | r21052 | |
| 213 | 213 | if(ACCESSING_BITS_0_7) |
| 214 | 214 | res |= stv_ioga_r(space,offset*4+3); |
| 215 | 215 | if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) |
| 216 | | printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); |
| 216 | if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7)) |
| 217 | printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); |
| 217 | 218 | |
| 218 | 219 | return res; |
| 219 | 220 | } |
| r21051 | r21052 | |
| 225 | 226 | if(ACCESSING_BITS_0_7) |
| 226 | 227 | stv_ioga_w(space,offset*4+3,data); |
| 227 | 228 | if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) |
| 228 | | printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); |
| 229 | if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7)) |
| 230 | printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); |
| 229 | 231 | |
| 230 | 232 | return; |
| 231 | 233 | } |
| r21051 | r21052 | |
| 240 | 242 | if(ACCESSING_BITS_0_7) |
| 241 | 243 | res |= critcrsh_ioga_r(space,offset*4+3); |
| 242 | 244 | if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) |
| 243 | | if(!space.debugger_access()) |
| 244 | | printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); |
| 245 | if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7)) |
| 246 | if(!space.debugger_access()) |
| 247 | printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); |
| 245 | 248 | |
| 246 | 249 | return res; |
| 247 | 250 | } |
| r21051 | r21052 | |
| 256 | 259 | if(ACCESSING_BITS_0_7) |
| 257 | 260 | res |= stvmp_ioga_r(space,offset*4+3); |
| 258 | 261 | if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) |
| 259 | | if(!space.debugger_access()) |
| 260 | | printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); |
| 262 | if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7)) |
| 263 | if(!space.debugger_access()) |
| 264 | printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); |
| 261 | 265 | |
| 262 | 266 | return res; |
| 263 | 267 | } |
| r21051 | r21052 | |
| 269 | 273 | if(ACCESSING_BITS_0_7) |
| 270 | 274 | stvmp_ioga_w(space,offset*4+3,data); |
| 271 | 275 | if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) |
| 272 | | if(!space.debugger_access()) |
| 273 | | printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); |
| 276 | if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7)) |
| 277 | if(!space.debugger_access()) |
| 278 | printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); |
| 274 | 279 | } |
| 275 | 280 | |
| 276 | 281 | READ32_MEMBER(saturn_state::magzun_ioga_r32) |
| r21051 | r21052 | |
| 283 | 288 | if(ACCESSING_BITS_0_7) |
| 284 | 289 | res |= magzun_ioga_r(space,offset*4+3); |
| 285 | 290 | if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) |
| 286 | | if(!space.debugger_access()) |
| 287 | | printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); |
| 291 | if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7)) |
| 292 | if(!space.debugger_access()) |
| 293 | printf("Warning: IOGA reads from odd offset %02x %08x!\n",offset*4,mem_mask); |
| 288 | 294 | |
| 289 | 295 | return res; |
| 290 | 296 | } |
| r21051 | r21052 | |
| 296 | 302 | if(ACCESSING_BITS_0_7) |
| 297 | 303 | magzun_ioga_w(space,offset*4+3,data); |
| 298 | 304 | if(ACCESSING_BITS_8_15 || ACCESSING_BITS_24_31) |
| 299 | | if(!space.debugger_access()) |
| 300 | | printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); |
| 305 | if(!(ACCESSING_BITS_16_23 || ACCESSING_BITS_0_7)) |
| 306 | if(!space.debugger_access()) |
| 307 | printf("Warning: IOGA writes to odd offset %02x (%08x) -> %08x!",offset*4,mem_mask,data); |
| 301 | 308 | } |
| 302 | 309 | |
| 303 | 310 | /* |