User`s manual
.RTC_RD
5-59
5
.RTC_RD
Name
.RTC_RD - Read the RTC registers
Code
$0053
Description
.RTC_RD is used to read the Real-Time Clock registers. The data
returned is in packed BCD.
The order of the data in the buffer is:
Entry Conditions
R03: Buffer address where RTC data is to be returned
Exit Conditions Different From Entry
Buffer now contains date and time in packed BCD format.
YMDdHMS c
||
begin
buffer
buffer
+ eight
bytes
Y Year (2 nibbles packed BCD)
M Month (2 nibbles packed BCD)
D Day of month (2 nibbles packed BCD)
d Day of week (2 nibbles packed BCD)
H Hour of 24 hour clock (2 nibbles packed BCD)
M Minute (2 nibbles packed BCD)
S Seconds (2 nibbles packed BCD)
c Calibration factor (MS nibble = 0 negative, 1 positive, LS
nibble = value)