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

Function WriteByteToMemory

source/Memory.cpp:498–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void WriteByteToMemory(uint16_t addr, uint8_t data)
499{
500 if (GetIsMemCacheValid())
501 {
502 mem[addr] = data;
503 memdirty[addr >> 8] = 1;
504 return;
505 }
506
507 if (memwrite[addr >> 8] == NULL) // Can be NULL (eg. ROM)
508 return;
509
510 *(memwrite[addr >> 8] + (addr & 0xff)) = data;
511}
512
513void CopyBytesFromMemoryPage(uint8_t* pDst, uint16_t srcAddr, size_t size)
514{

Callers 11

CpuSetupBenchmarkFunction · 0.85
AssemblerPokeAddressFunction · 0.85
CmdJSRFunction · 0.85
CmdNOPFunction · 0.85
CmdMemoryEnterByteFunction · 0.85
CmdMemoryEnterWordFunction · 0.85
CmdMemoryFillFunction · 0.85
CmdMemoryLoadFunction · 0.85
CmdMemoryMoveFunction · 0.85
ParseAssemblyListingFunction · 0.85

Calls 1

GetIsMemCacheValidFunction · 0.70

Tested by

no test coverage detected