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

Function IO_F8xx

source/Memory.cpp:1089–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087}
1088
1089BYTE __stdcall IO_F8xx(WORD programcounter, WORD address, BYTE write, BYTE value, ULONG nCycles) // NSC for Apple II/II+ (GH#827)
1090{
1091 if (IS_APPLE2 && g_NoSlotClock && !SW_HIGHRAM && !SW_WRITERAM)
1092 {
1093 if (g_NoSlotClock->ReadWrite(address, value, write))
1094 return value;
1095 }
1096
1097 //
1098
1099 if (!write)
1100 {
1101 return *(mem+address);
1102 }
1103 else
1104 {
1105 memdirty[address >> 8] = 0xFF;
1106 LPBYTE page = memwrite[address >> 8];
1107 if (page)
1108 *(page+(address & 0xFF)) = value;
1109 return 0;
1110 }
1111}
1112
1113//===========================================================================
1114

Callers

nothing calls this directly

Calls 1

ReadWriteMethod · 0.45

Tested by

no test coverage detected