MAME:Tricks: Difference between revisions

From SpecNext Wiki
Jump to: navigation, search
Ped7g (talk | contribs)
Save/Load state trick to speed up startup of MAME (skipping Next's boot sequence)
 
Ped7g (talk | contribs)
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

  1. launch from command line: mame tbblue ... -d
  2. F5 - unpause emulation to boot NextZXOS
  3. Select Browser
  4. Go to the folder where the *.nex file will be... move the cursor to this file (we'll go here after the soft reset)
  5. F3 - soft reset (you can do this in the debugger)
  6. F5 - let's go
  7. Set breakpoint bp 2411
  8. Wait for the menu... select Browser
  9. The breakpoint 2411 should trigger
  10. Set the cursor to 2424 (enter from the keyboard polling cycle)
  11. F4 - run to cursor
  12. statesave n
  13. Ctrl+Q exit MAME (TODO check the key, it's debugger hotkey I guess?)

Load saved state

  1. launch from command line: mame tbblue ... -state n
  2. test your code
  3. exit MAME
  4. Copy the new version of the super game to the image file
  5. Repeat