CMOS in SMM...

ZXNet echo conference «code.zx»

From 812/19.00 To Denis Parinov 2 December 1997

DP> Greetings, Fedy! Hi Denis! DK>>> 2Denis Parinov: DK>>> Well, give us a watch in SMM, otherwise all the letters will be for 10.24.97 FS>> Yes... And make an automatic determination of which watch FS>> are worth it, at least SMUG and CMOS. DP> that’s the problem, there are different watches, therefore DP> must be formatted as a driver. Therefore, you need to decide DP> memory should not be allocated to a whole page for the clock driver :) A page? What for??? You have it in the program are there 45 bytes? ;))) Here is a subroutine for CMOS: LD A,(8) ;IF NOT SCORP, CP 195; THERE IS NO CMOS JR NZ,NO_CMOS ;AND REMEMBER ;) LD D,#20 CALL RST_ ;UPDATED BUFFER JR C,NO_CMOS ;NO CMOS ;( LD DE,#414D LD HL,DATA CALL RST_ ;COUNTED THE DATE LD DE,#40DA LD HL,HOUR ;AND TIME... RST_RST 8 : DB #89 RET DATA DS 8 HOUR DS 5 After which you have 8 bytes in DATA dates like ??-??-??, 0 before the number is placed if it is <10... And in HOUR your time is ??:??, 5 bytes. Throw rub them in a letter, and everything is ok! Yes, also: on older versions of ROM the command RST 8: DB #89 is glitchy, so see also the ROM version. If less 3.? or like, then also NO_CMOS ;))) DP> P.S. I have already written a software (interruptive) clock DP> so as soon as I decide, everyone will have a watch. Decide quickly ;) DP> Best regards, Denis. Farvel, Vega/56. -+- ZxAsm 3.0