MAME:Tricks: Difference between revisions
From SpecNext Wiki
Save/Load state trick to speed up startup of MAME (skipping Next's boot sequence) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
= HOW-TO = | == HOW-TO == | ||
== Save state for quick loading of desired file through browser == | === Save state for quick loading of desired file through browser === | ||
# launch from command line: mame tbblue ... -d | # launch from command line: mame tbblue ... -d | ||
| Line 17: | Line 17: | ||
# Ctrl+Q exit MAME (TODO check the key, it's debugger hotkey I guess?) | # Ctrl+Q exit MAME (TODO check the key, it's debugger hotkey I guess?) | ||
== Load saved state == | === Load saved state === | ||
# launch from command line: mame tbblue ... -state n | # launch from command line: mame tbblue ... -state n | ||
Latest revision as of 23:31, 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