| 1087 | } |
| 1088 | |
| 1089 | BYTE __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 | |