In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: [quote="Kramer"]What Bean is saying is that the Compiler recognizes the correct choice between placing something in RAM or EEPROM by identifying the type of code following the ORG statement. You don't have to have a 'RAM_ORG' and an 'EEPROM_ORG' to get things to the right location. I hope that is not too wordy. Another way of putting it is the the Compiler is 'context aware' or 'context sensitive' in how it uses the ORG. Guenther's book really will lead you clearly through it, so read it when your ready.[/quote] I don't think that this is what Bean is saying. Bean pointed out that on machines with von Neumann structure the two ORG 8 directives in his example refer to exactly the same location in RAM memory, and the assembler would assign memory for variables there, and then generate code to be stored at the same memory location. This is a great example for self-destroying code :-) . Such desasters are not possible with the SX with its Harward structure because variable and program memory are completely separated, and addressed via two separate busses. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=100676#m100896 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)