MAME:Tricks: Difference between revisions
From SpecNext Wiki
Save/Load state trick to speed up startup of MAME (skipping Next's boot sequence) |
(No difference)
|
Revision as of 23:26, 15 November 2025
HOW-TO
Save state for quick loading of desired file through browser
- launch from command line: mame tbblue ... -d
- F5 - unpause emulation to boot NextZXOS
- Select Browser
- Go to the folder where the *.nex file will be... move the cursor to this file (we'll go here after the soft reset)
- F3 - soft reset (you can do this in the debugger)
- F5 - let's go
- Set breakpoint bp 2411
- Wait for the menu... select Browser
- The breakpoint 2411 should trigger
- Set the cursor to 2424 (enter from the keyboard polling cycle)
- F4 - run to cursor
- statesave n
- Ctrl+Q exit MAME (TODO check the key, it's debugger hotkey I guess?)
Load saved state
- launch from command line: mame tbblue ... -state n
- test your code
- exit MAME
- Copy the new version of the super game to the image file
- Repeat