MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / IOReadWrite_ANx

Function IOReadWrite_ANx

source/Memory.cpp:667–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665//-------------------------------------
666
667static BYTE __stdcall IOReadWrite_ANx(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles)
668{
669 // $C058..C05F
670 _ASSERT((addr & 0xf) >= 8);
671
672 if (IsAppleIIeOrAbove(GetApple2Type()))
673 {
674 if (!IsAppleIIc(GetApple2Type()) || /* IsIIc && */ SW_IOUDIS)
675 GetVideo().VideoSetMode(pc, addr, bWrite, d, nExecutedCycles); // Apple //e or (//c && IOUDIS)
676 }
677
678 if (IsAppleIIc(GetApple2Type())) // No ANx lines for //c
679 return 0;
680
681 // GH#1018 - AN3 line is still present on //e (with $C05E/F also toggling DHIRES)
682 return IO_Annunciator(pc, addr, bWrite, d, nExecutedCycles);
683}
684
685static BYTE __stdcall IORead_C05x(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles)
686{

Callers 2

IORead_C05xFunction · 0.85
IOWrite_C05xFunction · 0.85

Calls 5

IsAppleIIeOrAboveFunction · 0.85
GetApple2TypeFunction · 0.85
IsAppleIIcFunction · 0.85
IO_AnnunciatorFunction · 0.85
VideoSetModeMethod · 0.80

Tested by

no test coverage detected