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

Method InitializeROM

source/MouseInterface.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161//===========================================================================
162
163void CMouseInterface::InitializeROM(void)
164{
165 _ASSERT(m_pSlotRom == NULL);
166 if (m_pSlotRom)
167 return;
168
169 const UINT FW_SIZE = 2*1024;
170 BYTE* pData = GetFrame().GetResource(IDR_MOUSEINTERFACE_FW, "FIRMWARE", FW_SIZE);
171 if(pData == NULL)
172 return;
173
174 m_pSlotRom = new BYTE [FW_SIZE];
175 memcpy(m_pSlotRom, pData, FW_SIZE);
176}
177
178void CMouseInterface::InitializeIO(LPBYTE pCxRomPeripheral)
179{

Callers

nothing calls this directly

Calls 1

GetResourceMethod · 0.80

Tested by

no test coverage detected