[zxspectrum] Re: Re[2]: compito in classe

  • From: "Mario" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "aticatac70" for DMARC)
  • To: zxspectrum@xxxxxxxxxxxxx
  • Date: Tue, 10 May 2016 11:56:21 +0200


Purtroppo le cose sono piu' complicate di come sembravano alla prima lettura, vi giro la mail di miguel riguardante il driver rtc di esxdos:

Hi Mario!

I'm ok, but a bit busy with work :( I am still developing esxdos, but a bit slower... The current status of RTC driver in esxdos is a bit of a hack - as long as you can return the time/date in <http://www.maverick-os.dk/FileSystemFormats/FAT16_FileSystem.html#CreationTimeDate>FAT format, you are good to go. Below you can see the driver for when there is no RTC, just make it so that it can run from any address and you should be fine:

fake_date:
        ld de,$0000; 23/04/1982 00:00:00
        ld bc,$0499
        ret


in pratica ora devo "pacchettizzare" i 6 byte di secondi, minuti, ore, giorno, mese e anno in due word da 16 bit, tutto questo con un codice rilocabile... la cosa positiva e' che miguel e gli altri continuano a sviluppare esxdos (dita incrociate per i nomi lunghi e il menu 128) la cosa negativa e' che non ci sono delle chiamate di sistema ben definite e tutto puo' cambiare.. peccato perche' nonostante tutti usino esxdos col tasto nmi per caricare al volo i giochini, in realta' c'e' una gestione dei file completa ed affidabile..

ciaoo
Mario


At 11:34 10/05/2016, you wrote:


Il 10/05/2016 08:51, Paolo Ferraris ha scritto:

Algoritmo inverso. Purtroppo richede divisione per 10.

LD C,-1
LOOP:
INC C
SUB 10
JR C,LOOP
ADD A,10
LD B,A
LD A,C
ADD A,A
ADD A,A
ADD A,A
ADD A,A
ADD A,B

Sicuramente migliorabile quel loop. Ma credo non ne valga la pena. Tanto più che a Mario non serve.

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: