From 5a8e539caf21a02993ed905c79a22f751335a74e Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 30 Nov 2024 22:11:52 +0200 Subject: [PATCH] Updated GB_debugger_evaluate (markdown) --- GB_debugger_evaluate.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GB_debugger_evaluate.md b/GB_debugger_evaluate.md index b653e2d..b5598e9 100644 --- a/GB_debugger_evaluate.md +++ b/GB_debugger_evaluate.md @@ -6,8 +6,16 @@ In `debugger.h` ## Description -TBD +Evaluates the expression `string` in the context of an emulator instance. Return `true` if the expression was evaluated successfully. + +If `result` is not `NULL`, it will be populated with the 16-bit result of the evaluated expression upon success. + +If `result_bank` is not `NULL`, it will be populated with the bank of the evaluated expression, or `0xFFFF` if the result is not banked, upon success. ## Thread Safety `GB_debugger_evaluate` must not be called if the instance is being run in another thread, but may be called from the current one (via a callback). + +## See Also + +* [[GB_debugger_execute_command]] \ No newline at end of file