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

Method SetSlotRom

source/MouseInterface.cpp:229–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void 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

Callers

nothing calls this directly

Calls 2

MemGetCxRomPeripheralFunction · 0.85
GetIsMemCacheValidFunction · 0.70

Tested by

no test coverage detected