MAME:Tricks

From SpecNext Wiki
Revision as of 23:31, 15 November 2025 by Ped7g (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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