Dolphin, the GameCube and Wii emulator - Forums

Full Version: Memmap::Read_U8() not working?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

CNace13

Hey all,

I am trying to read some values for memory but for some reason Memory::Read_U8() is not returning values for some addresses.

For example I am trying to read from 0x803535C9, 0x803535DA, 0x803535E1, and 0x803535E4 but the function is not returning any data.

It works for other addresses 0x80353XXX addrs though and Read_U16 seems to be working perfectly as well whenever I use it.

Any ideas on why I am seeing this behavior? I know I could just use Read_U16 and mask the bytes I actually need but I'd rather not if I do
not need to. Thanks

CNace13

Turn out this was actually an issue with printing a u8 to console or file. Casting to a string solves it. My bad!