-
-
Notifications
You must be signed in to change notification settings - Fork 217
GB_debugger_evaluate
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
bool GB_debugger_evaluate(GB_gameboy_t *gb, const char *string, uint16_t *result, uint16_t *result_bank);
In debugger.h
Evaluates the expression string
in the context of an emulator instance. Returns 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.
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).