Next Generation Emulation banner

A few code questions

937 Views 1 Reply 2 Participants Last post by  Forgotten
A few questions to help me in understanding the vba core a bit better:

Is the argument to the macro READ32LE in Port.h supposed to be of type void*? I'm planning to convert them into inline functions.

Are the CPUwrite functions in gba.cpp the only place where memory from the emulated GBA is written? I'm asking as in order to have a "live" update feature in my Mac implementation of cheat search (which is completely different from the PC implementation of cheat search), I must add a function call to every place where something is written to the GBA.
1 - 2 of 2 Posts
That macro takes a memory address in the host system (MAC). Making inline may not help performance though.

CPUWrite* functions are where most write occur. The exception are the IO registers which are updated in other spots via CPUUpdateRegister calls.
1 - 2 of 2 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top