MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writeb

Method writeb

source/kernel/kmemory.cpp:892–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890}
891
892void KMemory::writeb(U32 address, U8 value) {
893 int index = address >> 12;
894 MMU& mmu = data->mmu[index];
895 if (mmu.canWriteRam) {
896 ramPageGet((RamPage)mmu.ramIndex)[address & 0xFFF] = value;
897 } else {
898 data->mmu[index].getPage()->writeb(&data->mmu[index], address, value);
899 }
900}
901
902U8* KMemory::getRamPtr(U32 address, U32 len, bool write, bool futex) {
903 U32 index = address >> K_PAGE_SHIFT;

Callers 15

glcommon_glGetStringFunction · 0.45
pushCode8Function · 0.45
EbFunction · 0.45
EbAlAxFunction · 0.45
EbClFunction · 0.45
EbIbFunction · 0.45
EbGbFunction · 0.45
GbEbFunction · 0.45
GbEwFunction · 0.45
GbEdFunction · 0.45
strTestFunction · 0.45
testXlat0x0d7Function · 0.45

Calls 2

ramPageGetFunction · 0.85
getPageMethod · 0.45

Tested by 14

pushCode8Function · 0.36
EbFunction · 0.36
EbAlAxFunction · 0.36
EbClFunction · 0.36
EbIbFunction · 0.36
EbGbFunction · 0.36
GbEbFunction · 0.36
GbEwFunction · 0.36
GbEdFunction · 0.36
strTestFunction · 0.36
testXlat0x0d7Function · 0.36
testXlat0x2d7Function · 0.36