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

Method ReadByteFromBank

source/LanguageCard.cpp:555–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555uint8_t Saturn128K::ReadByteFromBank(uint8_t bank, uint16_t phyAddr)
556{
557 if (bank >= kMaxSaturnBanks)
558 {
559 _ASSERT(0);
560 return 0;
561 }
562
563 if (phyAddr < 0xC000)
564 return 0;
565
566 // LC1-4K: physical addr [$C000-CFFF] - $C000 -> [$0000-0FFF]
567 // LC2-4K & 8K: physical addr [$D000-FFFF] - $C000 -> [$1000-3FFF]
568 return m_aSaturnBanks[bank][phyAddr - 0xC000];
569}
570
571uint8_t Saturn128K::GetSaturnMemorySize()
572{

Callers 1

ReadByteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected