mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-22 09:30:15 +00:00
Debugger: mini-mem: fix SYn to match AYn
This commit is contained in:
parent
1416cc1676
commit
80328b2bac
@ -3617,7 +3617,10 @@ bool MemoryDumpCheck (int nArgs, WORD * pAddress_ )
|
||||
{
|
||||
if (strlen(g_aArgs[1].sArg) == 3) // "SY0" or "SY1"
|
||||
{
|
||||
nAddress = (g_aArgs[1].sArg[2] - '0') & 3;
|
||||
UINT bits = (g_aArgs[1].sArg[2] - '0') & 3;
|
||||
UINT slot = 4 + (bits >> 1);
|
||||
UINT subUnit = bits & 1;
|
||||
nAddress = (slot << 4) | subUnit; // slot=[4..5] | subUnit=[0..1]
|
||||
pArg->eDevice = DEV_SY6522;
|
||||
bUpdate = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user