In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Rsadeika wrote: Bean, This could cause some serious nitemares. Wow, I thought I was making some headway. Back to square one, org $00 - $07 (SX-28), these are designated for other things, $08 is the first position where you can start variables or CODE, and the compiler sorts the two apart. In your example, the NOP $0B, and NOP $0D would be CODE addresses, and $0B and $0D positions would still be availble in the variable space. What I get out of this, is that there is a specific area where you can start, $08 (SX-28), the RESET is a programming convience tool. Technically it is not as complex as I thought, you have to start at certain point, $08 or $0A, and the compiler decides according to the text of your program, in this particular case Counter DS 1, is to be treated as a variable, and it is put into the variable memory space, code, decsz Counter1, is treated as CODE and put into program memory space. The trick is to keep everything straight in your head, making sure that program is in the sequence that you want. Am I getting close. Ray ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=100433#m100991 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)