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

Method InitializeIO

source/ParallelPrinter.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41//===========================================================================
42
43void ParallelPrinterCard::InitializeIO(LPBYTE pCxRomPeripheral)
44{
45 const uint32_t PRINTDRVR_SIZE = APPLE_SLOT_SIZE;
46 BYTE* pData = GetFrame().GetResource(IDR_PRINTDRVR_FW, "FIRMWARE", PRINTDRVR_SIZE);
47 if(pData == NULL)
48 return;
49
50 memcpy(pCxRomPeripheral + m_slot*APPLE_SLOT_SIZE, pData, PRINTDRVR_SIZE);
51
52 RegisterIoHandler(m_slot, IORead, IOWrite, NULL, NULL, this, NULL);
53}
54
55//===========================================================================
56bool ParallelPrinterCard::CheckPrint(void)

Callers

nothing calls this directly

Calls 2

RegisterIoHandlerFunction · 0.85
GetResourceMethod · 0.80

Tested by

no test coverage detected