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

Function TapeRead

source/Tape.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38//---------------------------------------------------------------------------
39
40BYTE __stdcall TapeRead(WORD, WORD address, BYTE, BYTE, ULONG nExecutedCycles) // $C060 TAPEIN
41{
42 if (g_Apple2Type == A2TYPE_PRAVETS8A)
43 return GetPravets().GetKeycode( MemReadFloatingBus(nExecutedCycles) );
44
45 return MemReadFloatingBus(1, nExecutedCycles); // TAPEIN has high bit 1 when input is low or not connected (UTAIIe page 7-5, 7-6)
46}
47
48BYTE __stdcall TapeWrite(WORD, WORD address, BYTE, BYTE, ULONG nExecutedCycles) // $C020 TAPEOUT
49{

Callers 1

IORead_C06xFunction · 0.85

Calls 2

GetKeycodeMethod · 0.80
MemReadFloatingBusFunction · 0.70

Tested by

no test coverage detected