HDD read: error if reading block to ROM (#1007)
This commit is contained in:
parent
2de04b35c5
commit
010d3525d3
2 changed files with 2 additions and 2 deletions
|
@ -8391,7 +8391,7 @@ void DebugContinueStepping(const bool bCallerWillUpdateDisplay/*=false*/)
|
||||||
else if (g_bDebugBreakpointHit & BP_HIT_INTERRUPT)
|
else if (g_bDebugBreakpointHit & BP_HIT_INTERRUPT)
|
||||||
sprintf_s(szStopMessage, sizeof(szStopMessage), "Interrupt occurred at $%04X", g_LBR);
|
sprintf_s(szStopMessage, sizeof(szStopMessage), "Interrupt occurred at $%04X", g_LBR);
|
||||||
else if (g_bDebugBreakpointHit & BP_DMA_TO_IO_MEM)
|
else if (g_bDebugBreakpointHit & BP_DMA_TO_IO_MEM)
|
||||||
sprintf_s(szStopMessage, sizeof(szStopMessage), "HDD DMA to I/O memory $%04X", g_uDebugBreakOnDmaIoMemoryAddr);
|
sprintf_s(szStopMessage, sizeof(szStopMessage), "HDD DMA to I/O memory or ROM $%04X", g_uDebugBreakOnDmaIoMemoryAddr);
|
||||||
else if (g_bDebugBreakpointHit & BP_DMA_FROM_IO_MEM)
|
else if (g_bDebugBreakpointHit & BP_DMA_FROM_IO_MEM)
|
||||||
sprintf_s(szStopMessage, sizeof(szStopMessage), "HDD DMA from I/O memory $%04X", g_uDebugBreakOnDmaIoMemoryAddr);
|
sprintf_s(szStopMessage, sizeof(szStopMessage), "HDD DMA from I/O memory $%04X", g_uDebugBreakOnDmaIoMemoryAddr);
|
||||||
else
|
else
|
||||||
|
|
|
@ -519,7 +519,7 @@ BYTE __stdcall HarddiskInterfaceCard::IORead(WORD pc, WORD addr, BYTE bWrite, BY
|
||||||
{
|
{
|
||||||
memdirty[dstAddr >> 8] = 0xFF;
|
memdirty[dstAddr >> 8] = 0xFF;
|
||||||
LPBYTE page = memwrite[dstAddr >> 8];
|
LPBYTE page = memwrite[dstAddr >> 8];
|
||||||
if (!page)
|
if (!page) // I/O space or ROM
|
||||||
{
|
{
|
||||||
if (g_nAppMode == MODE_STEPPING)
|
if (g_nAppMode == MODE_STEPPING)
|
||||||
DebuggerBreakOnDmaToOrFromIoMemory(dstAddr, true); // GH#1007
|
DebuggerBreakOnDmaToOrFromIoMemory(dstAddr, true); // GH#1007
|
||||||
|
|
Loading…
Add table
Reference in a new issue