In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJ Allen wrote: OK, thanks, Bean. There we read: The PROGRAM directive sets the execution start point (at a label.) When the NOSTARTUP option is used the SXB compiler will NOT insert the normal start-up code that pre-initializes all RAM addrs to zero; in this case the programmer is responsible for appropriate initialization... Note that when the NOSTARTUP option is used the TRIS registers are NOT initialized, so you MUST set up the ports as INPUTs or OUTPUTs. djh82uk's program has the NOSTARTUP option. So, even though somebody uses: InPin PIN RA.0 INPUT CMOS OutPin PIN RA.1 OUTPUT
    * Does it matter where it is placed? If so, How? Should it be after the PROGRAM directive? * Is a TRIS_A %0001 (A pin0 = in, pin1 = out) required still?
I've always put everything after the PROGRAM directive. I've never used NOSTARTUP. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=244365#m245288 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)