FBA-rr 0.0.7 implements some new Lua functions:
memory.registerexec | trigger a function when a given code is executed |
memory.registerread |
trigger a function when given memory is accessed |
memory.registerwrite |
|
memory.getregister |
read from and write to the CPU registers |
memory.setregister |
This effectively makes breakpoints and watchpoints available from within Lua. You can thank mz for these developments.
Most of the scripts have been updated to use these functions where applicable. In particular, if you want to see the CPS2 and Marvel throwboxes without messing around with MAME-rr, now you can.
In fact, the old method of piggybacking on the MAME-rr debugger has been removed, because I oppose writing to memory when the script is supposed to be read-only. So you have to use FBA for the bp/wp functionality now, but MAME still works for everything else.
The exceptions are garou-hitboxes.lua, since FBA's Lua can't control the NeoGeo's bank switching, and cps3-hitboxes.lua, since the new functions don't support the SH2 processor, although it's only one breakpoint at stake there. (It may be possible to get garou working in FBA by getting to script to read the box parameters exactly when the game's program does, which would obviate bank switching.)
The overhaul process was unexpectedly painstaking:
Recent Comments