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

Method ReadByte

source/LanguageCard.cpp:202–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202uint8_t LanguageCardUnit::ReadByte(uint16_t phyAddr)
203{
204 if (phyAddr < 0xC000)
205 return 0;
206
207 // LC1-4K: physical addr [$C000-CFFF] - $C000 -> [$0000-0FFF]
208 // LC2-4K & 8K: physical addr [$D000-FFFF] - $C000 -> [$1000-3FFF]
209 if (QueryType() == CT_LanguageCardIIe)
210 return *MemGetMainPtrWithLC(phyAddr);
211 else
212 return m_pMemory[phyAddr - 0xC000];
213}
214
215//-------------------------------------
216

Callers 1

Calls 3

MemGetMainPtrWithLCFunction · 0.85
QuerySlotMethod · 0.80
ReadByteFromBankMethod · 0.80

Tested by

no test coverage detected