Posted: Wed Oct 25, 2023 3:19 pm Post subject: Print results are blank when trying to print values (solved)
I'm trying to print all the values that r10 runs through at a certain point, but when it prints, all the values are blank (it takes time printing but literally prints nothing). Any idea how I might be able to fix it? It should be a 2 byte value. Also how can I make sure it prints in HEX?
Code:
[ENABLE]
{$lua}
if syntaxcheck then return end
debug_setBreakpoint(0x7FF6DBD632FF,function()
print(readSmallInteger(R10))
end)
[DISABLE]
{$lua}
if syntaxcheck then return end
debug_removeBreakpoint(0x7FF6DBD632FF)
edit: Never mind I got it working like this!
Code:
[ENABLE]
{$lua}
if syntaxcheck then return end
debug_setBreakpoint(0x7FF6DBD632FF,function()
print(string.format('%X', R10))
end)
[DISABLE]
{$lua}
if syntaxcheck then return end
debug_removeBreakpoint(0x7FF6DBD632FF)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum