mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-09 20:34:50 +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"
|
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;
|
pArg->eDevice = DEV_SY6522;
|
||||||
bUpdate = true;
|
bUpdate = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user