mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
lwriter.cpp: add debugger fences, some more tracing documentation (nw)
This commit is contained in:
parent
f256baf138
commit
56c1b0227a
@ -33,9 +33,9 @@
|
||||
0xD - <Passes> 5ffff8-5fffff High half of DRAM individual bit tests (walking ones and zeroes)
|
||||
0xC - <Passes> 400000-5fffff comprehensive DRAM data test
|
||||
0xB - <Passes?> Unknown test
|
||||
0xA - <Hacked to pass, not understood> dies if something to do with 600000-7fffff doesn't mirror 400000-5fffff ?
|
||||
0x8 - <Passes> SRAM test 000000-000FFF
|
||||
0x0 - <quickly runs off into weeds> not sure...
|
||||
0xA - <Passes> dies if 600000-7fffff doesn't mirror 400000-5fffff ?
|
||||
0x8 - <Passes> SRAM test 000000-000FFF (2e3616-2e3654)
|
||||
0x0 - <runs off into weeds> not sure... (2e2fd0... 2db764 is the end of the 'clear ram 41d53f down to 400000' loop...)
|
||||
|
||||
If one of the self tests fails, the uppermost bit will oscillate (c000 4000 c000 4000 etc) forever
|
||||
|
||||
@ -251,11 +251,10 @@ READ16_MEMBER(lwriter_state::bankedarea_r)
|
||||
}
|
||||
else if (offset <= 0x01ffff)
|
||||
{
|
||||
if (offset > 0x7ff)
|
||||
logerror("Attempt to read banked area (with overlay off) past end of SRAM from offset %08X!\n",offset<<1);
|
||||
if ((offset > 0x7ff) && !space.debugger_access()) { logerror("Attempt to read banked area (with overlay off) past end of SRAM from offset %08X!\n",offset<<1); }
|
||||
return m_sram_ptr[offset&0x7FF];
|
||||
}
|
||||
logerror("Attempt to read banked area (with overlay off) past end of SRAM from offset %08X! Returning 0xFFFF!\n",offset<<1);
|
||||
if(!space.debugger_access()) { logerror("Attempt to read banked area (with overlay off) past end of SRAM from offset %08X! Returning 0xFFFF!\n",offset<<1); }
|
||||
return 0xFFFF;
|
||||
}
|
||||
|
||||
@ -263,17 +262,16 @@ WRITE16_MEMBER(lwriter_state::bankedarea_w)
|
||||
{
|
||||
if (m_overlay)
|
||||
{
|
||||
logerror("Attempt to write banked area (with overlay ON) with data %04X to offset %08X IGNORED!\n",data, offset<<1);
|
||||
if(!space.debugger_access()) { logerror("Attempt to write banked area (with overlay ON) with data %04X to offset %08X IGNORED!\n",data, offset<<1); }
|
||||
return;
|
||||
}
|
||||
else if (offset <= 0x01ffff)
|
||||
{
|
||||
if (offset > 0x7ff)
|
||||
logerror("Attempt to write banked area (with overlay off) with data %04X to offset %08X!\n",data, offset<<1);
|
||||
if ((offset > 0x7ff) && !space.debugger_access()) { logerror("Attempt to write banked area (with overlay off) with data %04X to offset %08X!\n",data, offset<<1); }
|
||||
COMBINE_DATA(&m_sram_ptr[offset&0x7FF]);
|
||||
return;
|
||||
}
|
||||
logerror("Attempt to write banked area (with overlay off) with data %04X to offset %08X IGNORED!\n", data, offset<<1);
|
||||
if(!space.debugger_access()) { logerror("Attempt to write banked area (with overlay off) with data %04X to offset %08X IGNORED!\n", data, offset<<1); }
|
||||
}
|
||||
|
||||
/* 4 diagnostic LEDs, plus 4 i/o lines for the printer */
|
||||
|
Loading…
Reference in New Issue
Block a user