gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: gpasm problem
From: Tobias Schlottke
Date: Tue, 8 Apr 2003 20:21:16 +0200 (CEST)

Hi

I just tried to recompile an old project and had a
gpasm problem:

With gpasm-0.10.0 I can compile the short code shown
below with success.

Using gpasm-0.10.4 and the current cvs version
(gpasm-0.11.1 alpha) I get a parse error.

Of course this snippet is nonsense. I reduced it to the
critical part. The problem is the or'ed combination in
the condition.




0.10.0:
bug.asm:6:Message [301] Error!
(which is correct)

0.10.4 and newer:
bug.asm:5:Error [103] parse error
bug.asm:5:Message [301] Error!
bug.asm:6:Error [125] Illegal condition (ENDIF).



-------------------------->8------------------------
	org 0


initEE macro pointer
	if ((0 < 1) || (10 > 30))
		MESSG "Error! "
	endif
	movlw pointer
	endm

	initEE 0x40
end
-------------------------->8------------------------


Any hints?

Thanks,
Toby


gnupic@linuxhacker.org