mirror of https://github.com/LIJI32/SameBoy.git
Updated GB_safe_read_memory (markdown)
parent
29f9f801bb
commit
c6505d593d
|
@ -6,8 +6,18 @@ In `memory.h`
|
||||||
|
|
||||||
## Description
|
## 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
|
## 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).
|
`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]]
|
Loading…
Reference in New Issue