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
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