In SX Microcontrollers, SX/B Compiler and SX-Key Tool, John Kauffman wrote: [3]The help on the LOAD directive does not include an example so I have some usage questions.[/3] [3] [/3] [3]I start with the following constant declarations within a file named Serial_LCD_Template.sxb. The program runs fine.[/3] [3]>>>>> [/3] [3]' Constants for Serial LCD #27976/7[/3] [3]LcdRt CON $09 ' move cursor right[/3] [3]LcdCR CON $0D ' move pos 0 of next line[/3] [3]LcdBLon CON $11 ' backlight on[/3] [3] [/3] [3] [/3] [3]So I change the code to following:[/3] [3]>>>>> [/3] [3]' Constants for Serial LCD #27976/7[/3] [3]LcdRt CON $09 ' move cursor right[/3] [3]' LcdCR CON $0D ' move pos 0 of next line[/3] [3]LOAD "lcdcr.sxb"[/3] [3]LcdBLon CON $11 ' backlight on[/3] [3] [/3] [3]And I create in the same folder a file named lcdcr.sxb with one line as follows:[/3] [3]LcdCR CON $0D ' move pos 0 of next line[/3] [3] [/3] [3]When I run the file doing the loading it switches to the file to be loaded, highlights the one line in yellow and says no "Program" command used.[/3] [3] [/3] [3]I tried adding to the top of the file to load "PROGRAM" and "PROGRAM START" but no luck.[/3] [3] [/3] [3]Any suggestions?[/3] [3]Does anyone have a working example using LOAD?[/3] [3] [/3] [3]Thanks. [/3] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=255328 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)