In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tony Leyland wrote: Hi, I spotted a couple of things recently in V1.42. Appologies if these have already been discussed:- With the following code snippit and the CARRYX directive set, this loop does not loop, but exits immediately. TestVar = 1 do loop until TestVar = 0 ----------------------------------------------------------------------- The following Macro declare and then using it, actually works:- \IO_Port EQU ra \MacroTest MACRO \ setb IO_Port.\1 \ENDM \MacroTest 1 But when enclosed within ASM ENDASM like the following it does not:- \IO_Port EQU ra ASM MacroTest MACRO setb IO_Port.\1 ENDM ENDASM \MacroTest 1 ----------------------------------------------------------------------- The following produces an error about too many parameters:- TestVar = 1+8+1 ' Data bits for Serial Comms (1 start, 8 data, 1 stop) ----------------------------------------------------------------------- I noticed that the following produces the error "CONSTANT EXPECTED" TestCon2 CON TestCon1 TestCon1 CON 123 Since the order that they are defined is out of sequence, so to speak. Is this a fundamental feature of compiler / SASM ? Also, any DATA statements that are used must be before the line of code that references them. Will this change or is likely to be the norm. Many Thanks, Tony ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=97889 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)