| 227 | } |
| 228 | |
| 229 | void CMouseInterface::SetSlotRom() |
| 230 | { |
| 231 | // if (!m_bActive) |
| 232 | // return; |
| 233 | |
| 234 | LPBYTE pCxRomPeripheral = MemGetCxRomPeripheral(); |
| 235 | if (pCxRomPeripheral == NULL) |
| 236 | return; |
| 237 | |
| 238 | // m_by6821B (b#0000ppp0) defines the 3-bit ROM page that is switched in at $Cs00 |
| 239 | const UINT offset = (m_by6821B << 7) & 0x0700; |
| 240 | memcpy(pCxRomPeripheral + m_slot * APPLE_SLOT_SIZE, m_pSlotRom + offset, APPLE_SLOT_SIZE); |
| 241 | |
| 242 | if (GetIsMemCacheValid() && mem) |
| 243 | memcpy(mem + APPLE_IO_BEGIN + m_slot * APPLE_SLOT_SIZE, m_pSlotRom + offset, APPLE_SLOT_SIZE); |
| 244 | } |
| 245 | |
| 246 | //=========================================================================== |
| 247 |
nothing calls this directly
no test coverage detected