Skip to content

Instantly share code, notes, and snippets.

@romhack
Created March 15, 2021 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romhack/c93cad92b17ccf462dcf0fdfed9058a3 to your computer and use it in GitHub Desktop.
Save romhack/c93cad92b17ccf462dcf0fdfed9058a3 to your computer and use it in GitHub Desktop.
lua script for bizhawk to show decompression source and size
local xreg = ''
function srcUpdate()
xreg = xreg .. string.format("\n0x%x", emu.getregister("R0"))
end
function sizeUpdate()
xreg = xreg .. string.format(" 0x%x", emu.getregister("R0"))
end
event.onmemoryexecute(srcUpdate,0x08005BBC)
event.onmemoryexecute(sizeUpdate,0x08005D32)
while true do
emu.frameadvance()
gui.text(0, 0, "Src Size" .. xreg)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment