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

Method writew

source/kernel/kmemory.cpp:876–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876void KMemory::writew(U32 address, U16 value) {
877 if ((address & 0xFFF) < 0xFFF) {
878 int index = address >> 12;
879#if !defined(UNALIGNED_MEMORY)
880 MMU& mmu = data->mmu[index];
881 if (mmu.canWriteRam)
882 *(U16*)(&(ramPageGet((RamPage)mmu.ramIndex)[address & 0xFFF])) = value;
883 else
884#endif
885 data->mmu[index].getPage()->writew(&data->mmu[index], address, value);
886 } else {
887 writeb(address, (U8)value);
888 writeb(address + 1, (U8)(value >> 8));
889 }
890}
891
892void KMemory::writeb(U32 address, U8 value) {
893 int index = address >> 12;

Callers 15

marshalBackArrayFunction · 0.45
fild16Function · 0.45
testFILD_I16Function · 0.45
pushCode16Function · 0.45
EwAxDxFunction · 0.45
EwFunction · 0.45
EwClFunction · 0.45
EwIxFunction · 0.45
EwIbFunction · 0.45
EwIwFunction · 0.45
EwGwFunction · 0.45
GwEdFunction · 0.45

Calls 2

ramPageGetFunction · 0.85
getPageMethod · 0.45

Tested by 15

fild16Function · 0.36
testFILD_I16Function · 0.36
pushCode16Function · 0.36
EwAxDxFunction · 0.36
EwFunction · 0.36
EwClFunction · 0.36
EwIxFunction · 0.36
EwIbFunction · 0.36
EwIwFunction · 0.36
EwGwFunction · 0.36
GwEdFunction · 0.36
EwGwClFunction · 0.36