In SX Microcontrollers, SX/B Compiler and SX-Key Tool, sammishal wrote: Mr. Gunther, Thank you for all the explanation. I actually know the difference between RET and RETP. What I was confused about is whether RETW behaves like RET or like RETP after setting the W register. I have done some testing and discovered that it is like RET in that it does not restore the Page (top three bits of the Status register). IE it pops the 9 bit PC register of the stack without restoring the page 3 bits inside the Status register. So RETW is limited to being on the same page as the calling line unless there is an express PAGE command just before the RETW command. Anwy I think IREAD is much better and I will use this instead. Regards Samuel ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=104866#m104907 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)