News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Targhan

Extract data from SNApshot

Started by Targhan, 20:50, 10 February 21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Targhan

I don't want to reinvent the wheel: is there a command line tool (win+linux if possible) to extract the data from a SNApshot?
Something like:
snaExtract <input sna> <start> <length> output.bin ?

Thanks!
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

redbox


roudoudou

Quote from: Targhan on 20:50, 10 February 21
I don't want to reinvent the wheel: is there a command line tool (win+linux if possible) to extract the data from a SNApshot?
Something like:
snaExtract <input sna> <start> <length> output.bin ?

Thanks!


Not yet but i planned an INCSNA directive...
My pronouns are RASM and ACE

Targhan

Quote from: redbox on 21:09, 10 February 21A SNApshot is just the binary data plus a header:
Yes, I know that already. But it can be more subtle: there can be potential chunks after. Anyway, I just wanted to know if someone had a ready-made tool.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

redbox

Quote from: Targhan on 23:24, 10 February 21
Yes, I know that already. But it can be more subtle: there can be potential chunks after.

You could do it in Python to get the command line syntax you're after.

f = open('filename.sna', 'rb')
f.seek(255) # skip 255 bytes
rest = f.read() # read the rest


Python also has the bytes and bytearray manipulation built-in which would be useful.


Targhan

Quote from: redbox on 01:17, 11 February 21You could do it in Python
My thoughts exactly :). Such a great language.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

roudoudou


last version of snapshot contains crunched chunks so that's not that easy
My pronouns are RASM and ACE

Targhan

Quote from: roudoudou on 15:40, 11 February 21
last version of snapshot contains crunched chunks so that's not that easy
But fortunately, I am generating them via Ramlaid's tool, and it does not compact the data.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

redbox

Quote from: Targhan on 16:52, 11 February 21But fortunately, I am generating them via Ramlaid's tool, and it does not compact the data.

WinAPE also lets you choose if the data is compressed or uncompressed.

Targhan, is there any way of importing a YM dump into Arkos Tracker?

Targhan

Quote from: redbox on 17:13, 11 February 21Targhan, is there any way of importing a YM dump into Arkos Tracker?

You should ask this in another thread :). No, it would be meaningless or too hard to convert to a real song. However, you can drag'n'drop it to the YM Analyzer and hack some sounds from it.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

redbox

Quote from: Targhan on 17:55, 11 February 21However, you can drag'n'drop it to the YM Analyzer and hack some sounds from it.

Do you have a link to this please?

Targhan

Quote from: redbox on 18:17, 11 February 21Do you have a link to this please
It's inside AT2 itself. Tools > YM Analyzer.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

Powered by SMFPacks Menu Editor Mod