Created
March 15, 2021 19:40
-
-
Save romhack/c93cad92b17ccf462dcf0fdfed9058a3 to your computer and use it in GitHub Desktop.
lua script for bizhawk to show decompression source and size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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