Automatically find dupa() address, fix plo() command

This commit is contained in:
kamkow1
2025-03-11 23:41:40 +01:00
parent 17207421d3
commit b9ec1900b4
4 changed files with 41 additions and 4 deletions

View File

@@ -345,7 +345,9 @@ void dbg_js_splo(js_State *js)
void dbg_js_plo(js_State *js)
{
Dbg *dbg = getdbg();
js_pushnumber(js, dbg->program_load_offset);
char buf[20];
snprintf(buf, sizeof(buf), "0x%"PRIxPTR, dbg->program_load_offset);
js_pushstring(js, buf);
}
void dbg_js_lsbrk(js_State *js)