[zxspectrum] Re: R: Re: R: Re: R: Re: R: Re: R: Re: R: Re: R: Re: Fra
- From: Enrico Maria Giordano <e.m.giordano@xxxxxxxxxxxxxxx>
- To: zxspectrum@xxxxxxxxxxxxx
- Date: Sun, 31 Jan 2016 12:16:42 +0100
Il 31/01/2016 10:54, Simone Voltolini ha scritto:
Per cui in sostanza serve il codice richiesto da Enrico, lui lo aggiunge
al programma che ha già fatto e lo invia a me poi per i TEST.
Purtroppo non è così semplice. O meglio, lo sarebbe se ricevessi le
routine già pronte da essere utilizzate al posto delle mie per la Plus
D, pienamente compatibili. Ma finora non le ho viste. Andiamo per gradi.
Cominciamo dalla cancellazione. A me serve una routine che cancelli un
file dalla cartuccia e che si usi in questo modo (questa è la routine
per Plus D):
LD IX,HDR
RST 8
DEFB 65
dove
HDR DEFB 1
DEFW 0
DEFB "d"
DEFS 20
Il significato di questi ultimi 20 bytes è il seguente:
CODE
- lunghezza file (2 bytes)
- inizio file (2 bytes)
- CHR(255) + CHR(255)
- CHR(0) + CHR(0)
- lunghezza file (2 bytes)
BASIC
- lunghezza file (2 bytes)
- inizio Basic (2 bytes)
- lunghezza file (2 bytes)
- inizio file (2 bytes)
- lunghezza file (2 bytes)
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
Other related posts: