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

Function IOWrite_C03x

source/Memory.cpp:641–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639}
640
641static BYTE __stdcall IOWrite_C03x(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nExecutedCycles)
642{
643 if (GetCardMgr().GetVidHDCard())
644 {
645 // NB. Writes to $C03x addresses will still toggle the speaker, even with a VidHD present
646 if (addr == 0xC034 || addr == 0xC035)
647 GetVideo().VideoSetMode(pc, addr, bWrite, d, nExecutedCycles);
648 }
649
650 return SpkrToggle(pc, addr, bWrite, d, nExecutedCycles);
651}
652
653//-------------------------------------
654

Callers

nothing calls this directly

Calls 3

SpkrToggleFunction · 0.85
GetVidHDCardMethod · 0.80
VideoSetModeMethod · 0.80

Tested by

no test coverage detected