And what's stopping you?
Either I don't get it or you don't :-) No offense.
Code:
mai VAR BYTE
value VAR BYTE
mai = $2B 'assign value to variable, in this case the value 43 represented as HEX.
mai = mai + 10
LCDOUT $FE, 1, DEC mai ' will show 53
PAUSE 2000
value = mai * 4
LCDOUT $FE, 1, DEC value ' will show 212
PAUSE 2000
value = value / 5
LCDOUT $FE, 1, DEC value ' will show 42
PAUSE 2000
IF mai < $3A THEN
LCDOUT $FE, 1, "mai is smaller than 58"
ENDIF
PAUSE 2000
IF mai > value THEN
LCDOUT $FE, 1, "Yes, mai is bigger than value"
ENDIF
PAUSE 2000
LCDOUT $FE, 1, DEC mai, " ", HEX mai
PAUSE 2000
Show us the math or comparison you're wanting to do and tell us wha the problem you're having actually is.
/Henrik.
Bookmarks