Time compare wat ever u want
Hi people,
CALL "READ_CLK" // call RTC
RET_VAL:=#retHR
CDT :=#hallo // store in temp var.
NOP 0
L P##hallo // pointer on var
LAR1
L LB [AR1,P#0.0]
T MB 0 // Year in BCD
L LB [AR1,P#1.0]
T MB 1 // Month in BCD
L LB [AR1,P#2.0]
T MB 2 // Day in BCD
L LB [AR1,P#3.0]
T MB 3 // Hour in BCD
L LB [AR1,P#4.0]
T MB 4 // Min in BCD
L LB [AR1,P#5.0]
T MB 5 // Sec in BCD
L LW [AR1,P#6.0]
SRW 4
T MW 6 // Milisec in BCD
L LB [AR1,P#7.0]
L B#16#F
AW
T MB 8 // Day of week
NOP 0 // Sunday = 1
What I feel is that if we can declare another hallo that will be read from
the OP17 Text Display, and similarly I can break the Dt code into fragments of time,
and store them in to Marker byte via an accumulator can it work?
my question is only that we have to again convert this BCD code be it MB3 (hour) for instance , to
an Integer and furthur compare the two integers? will it work??
Kartik