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

Method writed

source/kernel/kmemory.cpp:858–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858void KMemory::writed(U32 address, U32 value) {
859 if ((address & 0xFFF) < 0xFFD) {
860 int index = address >> 12;
861#if !defined(UNALIGNED_MEMORY)
862 MMU& mmu = data->mmu[index];
863 if (mmu.canWriteRam)
864 *(U32*)(&(ramPageGet((RamPage)mmu.ramIndex)[address & 0xFFF])) = value;
865 else
866#endif
867 data->mmu[index].getPage()->writed(&data->mmu[index], address, value);
868 } else {
869 writeb(address, value);
870 writeb(address + 1, value >> 8);
871 writeb(address + 2, value >> 16);
872 writeb(address + 3, value >> 24);
873 }
874}
875
876void KMemory::writew(U32 address, U16 value) {
877 if ((address & 0xFFF) < 0xFFF) {

Calls 2

ramPageGetFunction · 0.85
getPageMethod · 0.45

Tested by 15

writeFFunction · 0.36
FSTFloatFunction · 0.36
doCOMIntTestFunction · 0.36
testFMemIntFunction · 0.36
pushCode32Function · 0.36
EbFunction · 0.36
EbAlAxFunction · 0.36
EwAxDxFunction · 0.36
EdEaxEdxFunction · 0.36
EbClFunction · 0.36
EbIbFunction · 0.36
EbGbFunction · 0.36