Re: [hatari-devel] Screenshots in NEO format

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 2.1.2024 20.15, J.Young wrote:
Atm, I have to check the video base address, savebin the screen data, savebin the palette then run go on the host and run a bash script to assemble the header and tack on the screen data.  Very time consuming. > The sort of thing that programs are very good at doing fast :).

You can put repeated debugger steps (like looking up correct addresses & "savebin" calls) to a debugger script, and just call that. like this:
------------------------------------------------------
> parse save-neo.ini
Reading debugger commands from 'save-neo.ini'...
> savebin screen.bin 1000 32000
  Wrote 0x7d00 bytes.

> h parse
'parse' or 'p' - get debugger commands from file
Usage:  p [filename]
	Read debugger commands from given file and do them.
	Current directory is script directory during this.
	To specify directory to be used also for breakpoint
	scripts execution, use '-f' option for 'cd' command.
-----------------------------------------------------

Virtual registers can be used e.g. to hold address values you've looked up / calculated, like this:
-----------------------------------------------------
> r v0="($200)+32"
  value at ($200).l = $e007ce
- '($200)+32' -> $e007ee

> r
....
Virtual registers:
  V0 00e007ee  V1 00000000  V2 00000000  V3 00000000
  V4 00000000  V5 00000000  V6 00000000  V7 00000000
-----------------------------------------------------


I am working on a game launcher and being able to get screenshots for new conversions/adaptations is a big part of the ongoing use of it.


	- Eero




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/