[cc65] ca65 .if statement

From: carlos <carlosofcascade1gmx.net>
Date: 2004-03-20 13:59:39
Hello Ullrich,

look this:

000000r 1               .DEFINE const1 $1000
000000r 1               .DEFINE const2 $1080
000000r 1                    
000000r 1  A9 00             lda #<const1
000002r 1               .IF .LOBYTE(const1) != .LOBYTE(const2)
000002r 1                    lda #<const2
000002r 1               .ENDIF
000002r 1               
000002r 1  A9 00             lda #<const1
000004r 1               .IF .LOBYTE(const1) <> .LOBYTE(const2)
000004r 1  A9 80             lda #<const2
000006r 1               .ENDIF
000006r 1               

Is this a bug, or did i understand something wrong with the .IF statement? I thought, that != and <> is the same.

Greetings Carlos


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Mar 20 14:00:36 2004

This archive was generated by hypermail 2.1.8 : 2004-03-20 14:00:42 CET