Previous 199869 Revisions Next

r30603 Thursday 22nd May, 2014 at 19:25:59 UTC by Tafoid
Avoid parsing confusion for real errors (nw)
[src/mess/drivers]mz3500.c

trunk/src/mess/drivers/mz3500.c
r30602r30603
272272         if(m_ma == 0xf) { return mz3500_shared_ram_r(space,(offset & 0x7ff)); }
273273      }
274274
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);
276276   }
277277   else if(m_ms == 1)
278278   {
r30602r30603
314314         }
315315      }
316316
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);
318318   }
319319   else if (m_ms == 3) // RAM based BASIC
320320   {
r30602r30603
328328            case 0x2: return mz3500_work_ram_r(space,(offset & 0x1fff) | 0xe000);
329329         }
330330
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);
332332      }
333333      if((offset & 0xc000) == 0x4000) { return mz3500_work_ram_r(space,(offset & 0x3fff) | 0x4000); }
334334      if((offset & 0xc000) == 0x8000) { return mz3500_work_ram_r(space,(offset & 0x3fff) | 0x8000); }
r30602r30603
370370         if(m_ma == 0xf) { mz3500_shared_ram_w(space,(offset & 0x7ff),data); return; }
371371      }
372372
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);
374374   }
375375   else if(m_ms == 1) // System Loading & CP/M
376376   {
r30602r30603
407407         }
408408      }
409409
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);
411411   }
412412   else if (m_ms == 3) // RAM based BASIC
413413   {
r30602r30603
421421            case 0x2: mz3500_work_ram_w(space,(offset & 0x1fff) | 0xe000,data); return;
422422         }
423423
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);
425425      }
426426      if((offset & 0xc000) == 0x4000) { mz3500_work_ram_w(space,(offset & 0x3fff) | 0x4000,data); return; }
427427      if((offset & 0xc000) == 0x8000) { mz3500_work_ram_w(space,(offset & 0x3fff) | 0x8000,data); return; }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team