In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Just one small correction. There is only one ORG pointer. Just because you set the ORG $0A does not tell the assembler that you are defining variables. That is done on a line-by-line basis. It's kind of ignorant but if you do this: ORG $0A counter1 DS 1 ; counter1 = $0A in variable space NOP ; This instruction is at address $0B in program space counter2 DS 1 ; counter2 = $0C in variable space NOP ; This instruction is at address $0D in program space counter3 DS 1 ; counter3 = $0E in variable space So you see the ORG pointer is incremented the same for variables or instructions. You see how we have left "holes" in the variables space and in the code space. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=100433#m100970 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)