From c6505d593df63a1d8e4c517ab7aa4bb6a32d0a38 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 30 Nov 2024 20:44:36 +0200 Subject: [PATCH] Updated GB_safe_read_memory (markdown) --- GB_safe_read_memory.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/GB_safe_read_memory.md b/GB_safe_read_memory.md index a14eddd..f99404a 100644 --- a/GB_safe_read_memory.md +++ b/GB_safe_read_memory.md @@ -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]] \ No newline at end of file