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

Function CopyBytesFromMemoryPage

source/Memory.cpp:513–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513void CopyBytesFromMemoryPage(uint8_t* pDst, uint16_t srcAddr, size_t size)
514{
515 _ASSERT(((srcAddr & 0xff) + size) <= _6502_PAGE_SIZE);
516
517 uint8_t* pSrc = &mem[srcAddr];
518
519 if (!GetIsMemCacheValid())
520 {
521 _ASSERT(memshadow[srcAddr >> 8]); // Should never be NULL
522 if (memshadow[srcAddr >> 8] == NULL) return;
523
524 pSrc = memshadow[srcAddr >> 8] + (srcAddr & 0xff);
525 }
526
527 memcpy(pDst, pSrc, size);
528}
529
530// //e aux slot is empty & ALTZP=1
531bool IsZeroPageFloatingBus(void)

Callers 1

CmdExecuteMethod · 0.85

Calls 1

GetIsMemCacheValidFunction · 0.70

Tested by

no test coverage detected