trunk/src/mess/drivers/mz3500.c
| r30602 | r30603 | |
| 272 | 272 | if(m_ma == 0xf) { return mz3500_shared_ram_r(space,(offset & 0x7ff)); } |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | | printf("Error: read with unmapped memory bank offset %04x MS %02x MA %02x\n",offset,m_ms,m_ma); |
| 275 | printf("Read with unmapped memory bank offset %04x MS %02x MA %02x\n",offset,m_ms,m_ma); |
| 276 | 276 | } |
| 277 | 277 | else if(m_ms == 1) |
| 278 | 278 | { |
| r30602 | r30603 | |
| 314 | 314 | } |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | | printf("Error: read with unmapped memory bank offset %04x MS %02x MA %02x MO %02x\n",offset,m_ms,m_ma,m_mo); |
| 317 | printf("Read with unmapped memory bank offset %04x MS %02x MA %02x MO %02x\n",offset,m_ms,m_ma,m_mo); |
| 318 | 318 | } |
| 319 | 319 | else if (m_ms == 3) // RAM based BASIC |
| 320 | 320 | { |
| r30602 | r30603 | |
| 328 | 328 | case 0x2: return mz3500_work_ram_r(space,(offset & 0x1fff) | 0xe000); |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | | printf("Error: read with unmapped memory bank offset %04x MS %02x MO %02x\n",offset,m_ms,m_mo); |
| 331 | printf("Read with unmapped memory bank offset %04x MS %02x MO %02x\n",offset,m_ms,m_mo); |
| 332 | 332 | } |
| 333 | 333 | if((offset & 0xc000) == 0x4000) { return mz3500_work_ram_r(space,(offset & 0x3fff) | 0x4000); } |
| 334 | 334 | if((offset & 0xc000) == 0x8000) { return mz3500_work_ram_r(space,(offset & 0x3fff) | 0x8000); } |
| r30602 | r30603 | |
| 370 | 370 | if(m_ma == 0xf) { mz3500_shared_ram_w(space,(offset & 0x7ff),data); return; } |
| 371 | 371 | } |
| 372 | 372 | |
| 373 | | printf("Error: write with unmapped memory bank offset %04x data %02x MS %02x MA %02x\n",offset,data,m_ms,m_ma); |
| 373 | printf("Write with unmapped memory bank offset %04x data %02x MS %02x MA %02x\n",offset,data,m_ms,m_ma); |
| 374 | 374 | } |
| 375 | 375 | else if(m_ms == 1) // System Loading & CP/M |
| 376 | 376 | { |
| r30602 | r30603 | |
| 407 | 407 | } |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | | printf("Error: write with unmapped memory bank offset %04x data %02x MS %02x MA %02x\n",offset,data,m_ms,m_ma); |
| 410 | printf("Write with unmapped memory bank offset %04x data %02x MS %02x MA %02x\n",offset,data,m_ms,m_ma); |
| 411 | 411 | } |
| 412 | 412 | else if (m_ms == 3) // RAM based BASIC |
| 413 | 413 | { |
| r30602 | r30603 | |
| 421 | 421 | case 0x2: mz3500_work_ram_w(space,(offset & 0x1fff) | 0xe000,data); return; |
| 422 | 422 | } |
| 423 | 423 | |
| 424 | | printf("Error: read with unmapped memory bank offset %04x MS %02x MO %02x\n",offset,m_ms,m_mo); |
| 424 | printf("Read with unmapped memory bank offset %04x MS %02x MO %02x\n",offset,m_ms,m_mo); |
| 425 | 425 | } |
| 426 | 426 | if((offset & 0xc000) == 0x4000) { mz3500_work_ram_w(space,(offset & 0x3fff) | 0x4000,data); return; } |
| 427 | 427 | if((offset & 0xc000) == 0x8000) { mz3500_work_ram_w(space,(offset & 0x3fff) | 0x8000,data); return; } |