In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Mike_W wrote: Both of these routines work, they write a degree character to location 0 of a LCD. I noticed that the DO LOOP routine takes less space when compiled Is that the only difference between them? they both seam to work fine and do the same thing. is their an advantage or disadvantage to using either ' ----------------------------------- tmpB4 = 0 DO ' write custom degree º character READ DegreeSign + tmpB4, tmpB2 ' to location 0 LCD_OUT tmpB2 ' send the byte INC tmpB4 LOOP UNTIL tmpB4 = 9 ' ----------------------------------- ' ----------------------------------- FOR tmpB4 = 0 TO 8 ' write custom degree º character READ DegreeSign + tmpB4, tmpB2 ' to location 0 LCD_OUT tmpB2 ' send the byte 'NEXT ' ' ----------------------------------- Thanks Mike ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270961 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)