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

Method FixupUnitNum

source/Harddisk.cpp:1012–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010//===========================================================================
1011
1012void HarddiskInterfaceCard::FixupUnitNum(void)
1013{
1014 if (!m_isFirmwareV1or2)
1015 return;
1016
1017 // Older firmwares can write unitNum with 0x00
1018 if ((m_unitNum >> 4) != m_slot)
1019 m_unitNum = (m_unitNum & 0x8F) | (m_slot << 4);
1020}
1021
1022BYTE HarddiskInterfaceCard::GetNumConnectedDevices(void)
1023{

Callers 1

IOWriteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected