CPCWiki forum

General Category => Emulators => Topic started by: BSC on 21:45, 01 February 22

Title: Snapshot (.sna) file editing
Post by: BSC on 21:45, 01 February 22
Is there any tool to create new or manipulate existing snapshot files? I want to inject some code into an existing snapshot, but RetroVirtualMachine (the emu I am currently using) only accepts v3 snapshots and those have a non-linear (chunked) format, so it's not trivial to inject something.

btw: I tried searching the forums but according to the search, the word "snapshot" has never been used yet ..


EDIT: rasm (https://github.com/EdouardBERGE/rasm) can do this, and very easily as well! :thumbsup:
Title: Re: Snapshot (.sna) file editing
Post by: eto on 00:22, 02 February 22
Quote from: BSC on 21:45, 01 February 22btw: I tried searching the forums but according to the search, the word "snapshot" has never been used yet ..

The forum search is broken, use Google with option site:cpcwiki.eu

https://www.google.com/search?q=snapshot+site%3Acpcwiki.eu&oq=snapshot+site%3Acpcwiki.eu
Title: Re: Snapshot (.sna) file editing
Post by: krusty_benediction on 13:23, 02 February 22
Quote from: BSC on 21:45, 01 February 22Is there any tool to create new or manipulate existing snapshot files? I want to inject some code into an existing snapshot, but RetroVirtualMachine (the emu I am currently using) only accepts v3 snapshots and those have a non-linear (chunked) format, so it's not trivial to inject something.

Hello I maintain such kind of tools here: https://github.com/cpcsdk/rust.cpclib/releases (https://github.com/cpcsdk/rust.cpclib/releases)
I'm starting to have free time from today ... so I can update it this weekend to add features you need. snapshot tool currently can add a byte at a specific address, but not a binary blob (in fact, it seems you can with -l option)
Title: Re: Snapshot (.sna) file editing
Post by: BSC on 21:26, 03 February 22
Quote from: krusty_benediction on 13:23, 02 February 22I'm starting to have free time from today ... so I can update it this weekend to add features you need. snapshot tool currently can add a byte at a specific address, but not a binary blob (in fact, it seems you can with -l option)

That's a very nice offering, but I am perfectly happy with the rasm way. But thanks for your xfer tool btw and keep it up!
Powered by SMFPacks Menu Editor Mod