In SX Microcontrollers, SX/B Compiler and SX-Key Tool, sammishal wrote: Mr. Gunther, THANK YOU VERY MUCH!!!!!!!!! Your above post has answered my Puzzle as I was posting it. (see seperate post I have just finished doing) Now the puzzle is clear. RET and RETP and RETW would always return to the correct line in the correct page due to this restoring of the actual 12 bit address. But only RETP restores the STATUS register and thus any subsequent jmps would fail if RET or RETW are used from a long call (call @). So one way around this is to use the RETW but in the next line after the call to use a PAGE to restore the STATUS bits to the correct page..............I now can still use RETW but with this added precaution within the calling code.........Thanks BUT PLEASE READ the seperate thread I have just posted. I ahve an additional question there. The question is : If the PC register is a 9 bit register, then why do you only show 8 bits on the SXSim screen, and by the way also the IDE DEbug does the same thing? This can be confusing during the following of the code say when you are on a line $302 for example The top 3 bits of Status would show %001 and PC $02 but there is there is no indication that the actual address is currently %0011 0000 0010 since the 4ths bit from the top is no where to be seen??????????? 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#m104930 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)