[zxspectrum] Re: R: ZX Spectrum Vega

  • From: "Stefano" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "flydream@xxxxxxxxx" for DMARC)
  • To: zxspectrum@xxxxxxxxxxxxx
  • Date: Tue, 21 Jul 2015 11:35:03 +0200

Il 21/07/2015 10:26, Enrico Maria Giordano ha scritto:



Il 21/07/2015 08:32, Stefano (Redacted sender flydream@xxxxxxxxx for DMARC) ha scritto:

piu' semplice da implementare: in questo modo non si hanno gli "n"
schemi di caricamento e se mi invento un nuovo tipo di turbo, riesco a
mantenere con questo formato il loader originale

Quindi CSW è meglio di TZX? E come mai allora non si è diffuso affatto?

EMG

--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG Music page: http://www.emagsoftware.it/emgmusic
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg

perchè il csw non supporta ovviamente il flash load ma solo una modalità turbo e basta e poi non ha i blocchi editabili o modificabili. E' una sorta di Wav o Mp3 ma più compresso Sul sito dei Ramsoft c'è scritto
ntroduction

This document describes the CSW file format and the CSW.EXE utility. CSW is strongly based upon the MakeTZX engine and it shares with it various aspects of its behaviour. In the manual of MakeTZX you will find lots of explanations, tips and FAQ that are not reported here, so we recommend you to read it too.

*The CSW file format*

CSW files are a way of storing sample data in a compact form, typically taking 1/10th of an ordinary VOC. It is used internally by MakeTZX, but it is also very useful to keep down the disk space taken by your VOC/WAV files. The CSW utility can handle CSW conversion in both ways (see below). Of course, MakeTZX itself accepts CSW files for input. When converting to the CSW format, the sample file is processed through MakeTZX's internal digital filter which reduces noise and signal distortions very efficiently. Make a backup copy of the original file if you will need the original samples later, but remeber that in most cases the CSW will be a lot better than the original file. Note that CSWs are intended for use with square waves only (such as computer tapes)! The compression ratio depends on many factors; in general, the higher the sample rate, the higher the ratio. A clean and regular signal helps too. The ratio for a 44 KHz file will usually be twice the value for a 22 KHz one. The typical gain for a 44 KHz turbo tape is about 93%, which means a 12:1 compression factor! Normal speed tapes should compress even better. Finally, CSW files are highly compressable with the standard PC archivers such as RAR and ZIP. The packed CSW files are usually smaller than the zipped original VOCs. You will be able to RAR a 40 MB sample file down to a few hundreds KB.

CSW-2 file format

Here is the CSW implementation chart for anyone who wants to use it in some utility or emulator (if so, please let us know). The file format is very simple and the compression scheme used is somewhat based on the RLE algorithm.

*Legenda*
WORD 2 bytes
DWORD 4 bytes
BYTE[N] N bytes
ASCII[N] N ASCII characters
ASCIIZ[N] ASCII string with zero-padding to N bytes total
All multi-byte values are stored in Intel byte order (little-endian).
All /reserved/ or undefined bits must be set to zero.
All the headers fields must be filled in; blank values are not allowed.

Other related posts: