DiablodeMorte
04-07-2007, 11:07 AM
'ello everybody,
I've having alittle difficulty getting my IF statement working
Here's my code:
Seconds VAR Byte
AlarmSecond VAR Byte
IF((AlarmSecond = Seconds)) THEN Alarm
The IF statement never returns true!
When ever I refrenced Seconds I usually do it w/ Seconds.HIGHNIB and Seconds.LOWNIB
When I had AlarmSecond defined as such:
AlarmSecond = $21
the comparison worked, but when I derive AlarmSecond from a serin command the comparison fails.
I usually derived Seconds from the following line:
SHIFTOUT DTA, Clk, LSBFIRST, [%1\1,BrstReg\5,%10\2]
SHIFTIN DTA, Clk, LSBPRE, [Seconds,Minutes,Hours,Date,Month,Day,Year]
Any help?
Is there a function I'm missing?
I've having alittle difficulty getting my IF statement working
Here's my code:
Seconds VAR Byte
AlarmSecond VAR Byte
IF((AlarmSecond = Seconds)) THEN Alarm
The IF statement never returns true!
When ever I refrenced Seconds I usually do it w/ Seconds.HIGHNIB and Seconds.LOWNIB
When I had AlarmSecond defined as such:
AlarmSecond = $21
the comparison worked, but when I derive AlarmSecond from a serin command the comparison fails.
I usually derived Seconds from the following line:
SHIFTOUT DTA, Clk, LSBFIRST, [%1\1,BrstReg\5,%10\2]
SHIFTIN DTA, Clk, LSBPRE, [Seconds,Minutes,Hours,Date,Month,Day,Year]
Any help?
Is there a function I'm missing?