Updated GB_safe_read_memory (markdown)

Lior Halphon 2024-11-30 20:44:36 +02:00
parent 29f9f801bb
commit c6505d593d
1 changed files with 11 additions and 1 deletions

@ -6,8 +6,18 @@ In `memory.h`
## Description
TBD
Performs a memory read on a 16-bit address on the emulator instance and returns the 8-bit read value, while avoiding side-effects that would occur of the CPU was to perform the same read.
## Thread Safety
`GB_safe_read_memory` must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).
## Notes
To read data outside of a currently mapped bank, you can use [[GB_get_direct_access]].
## See Also
* [[GB_read_memory]]
* [[GB_write_memory]]
* [[GB_get_direct_access]]