In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: Rsadeika, the RESET is not just a programming convenience tool - it is an important directive. When any SX starts program execution after a reset or power-on, it reads and executes the instruction located at the highest available program memory first, so this address should always contain a JMP instruction sending program execution to a point where YOU want to start it. With a directive like RESET Main the assembler automatically generates a JMP
for the highest location in program memory. Note that after power-on/reset, the high page select bits in the STATUS register are automatically cleared, i.e. PAGE 0 is automatically selected. This is why the start of the main program can only be located in the first page of program memory. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=100433#m101002 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)