In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: Paul, Yes, provided that W contains the address of the jump target, you can use mov pc, w to jump to that target. jmp pc+w (or add pc, w) is another method which allows for relative jumps with w holding the offset. Actually, all three cycles are caused due the instruction pipeline. This 4-level pipeline usually holds four instructions read from four consecutive locations in program memory. On a jmp (or call), three instructions in the pipeline must be discarded, and it takes three cycles until the first instruction of the code sequence at the jmp target reaches the end of the pipeline. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=80151#m80156 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)