MCPcopy Create free account
hub / github.com/TASEmulators/fceux / ReadValueAtHardwareAddress

Function ReadValueAtHardwareAddress

src/drivers/win/ram_search.cpp:984–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982 }
983}
984unsigned int ReadValueAtHardwareAddress(HWAddressType address, unsigned int size)
985{
986 unsigned int value = 0;
987
988 // read as little endian
989 for(unsigned int i = 0; i < size; i++)
990 {
991 value <<= 8;
992 value |= GetMem(address);
993 address++;
994 }
995 return value;
996}
997bool WriteValueAtHardwareAddress(HWAddressType address, unsigned int value, unsigned int size)
998{
999 // TODO: NYI

Callers 2

GetCurrentValueFunction · 0.70
UpdateRegionTFunction · 0.70

Calls 1

GetMemFunction · 0.85

Tested by

no test coverage detected