Post subject: Lua help: I need memory.getregister
Skilled player (1770)
Joined: 5/7/2008
Posts: 187
Location: Japan
I used the following scripts for a random number prediction in Snes9x. However, I do not understand a function of that purpose in BizHawk. TAS of Wizardry5 is not completed without it...
memory.registerexec(0xb379,1,function()
	print(memory.getregister("a"))
end)
Former player
Joined: 5/4/2005
Posts: 502
Location: Onett, Eagleland
You cannot get cpu registers in bizhawk currently. That would require CPU breakpoints to be implemented and from my understanding they won't be a working debugger in Bizhawk until 2.0....no idea when that will be since it keeps being brought up as a theoretical version whenever something should be implemented :P.
I think.....therefore I am not Barry Burton
Skilled player (1770)
Joined: 5/7/2008
Posts: 187
Location: Japan
I am sunk in deep sorrow :'(
Masterjun
He/Him
Site Developer, Skilled player (1972)
Joined: 10/12/2010
Posts: 1179
Location: Germany
Lsnes rr2 has lua debug functions with which you can do something like that
Warning: Might glitch to credits I will finish this ACE soon as possible (or will I?)
Skilled player (1770)
Joined: 5/7/2008
Posts: 187
Location: Japan
Thank you for informing it. But unfortunately Lsnes-RR2 did not work with my machine. I devise a different method, or I wait.
Skilled player (1709)
Joined: 9/17/2009
Posts: 4952
Location: ̶C̶a̶n̶a̶d̶a̶ "Kanatah"
pirohiko wrote:
Thank you for informing it. But unfortunately Lsnes-RR2 did not work with my machine. I devise a different method, or I wait.
Uh...you can try using a VM like virtualbox to get an OS which can run lsnes. I did that to TAS Windows games without crashing (often).