diff --git a/SD/SYS/RTC.SYS b/SD/SYS/RTC.SYS index 529f3fc..afca2ee 100644 Binary files a/SD/SYS/RTC.SYS and b/SD/SYS/RTC.SYS differ diff --git a/utils/rtc.asm b/utils/rtc.asm index 37c1d04..fd585cf 100644 --- a/utils/rtc.asm +++ b/utils/rtc.asm @@ -19,7 +19,7 @@ ; ;------------------------------------------------------------------------------- -; output RTC.SYS + output RTC.SYS define SCL0SDA0 00b define SCL0SDA1 01b @@ -132,12 +132,11 @@ Suma10 add a, 10 Params db 0, 0, 0, 0, 0, 0, 0 ;La hora a la que quieres poner el reloj ; S M H D W Mo Y En lectura, estos datos se machacan con la hora leĆ­da del RTC +SendByte scf ;Enviar un byte por I2C. Byte en A. BC=puerto de datos del ZXUNO ya + adc a, a ;apuntando a I2CREG. Usa y modifica: A, D, flags Trans call c, Send1 call nc, Send0 - and a - db $38 ;jr nc, +$37 / jr TransBit -SendByte scf ;Enviar un byte por I2C. Byte en A. BC=puerto de datos del ZXUNO ya -TransBit adc a, a ;apuntando a I2CREG. Usa y modifica: A, D, flags + add a, a jr nz, Trans Send1 ld d, SCL0SDA1 out (c), d