In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote: Oh then that is a completely different story, I have very fast code for linear addressing. James has a copy of it here [url=http://www.sxlist.com/techref/scenix/lib/mem/sstack_sx.htm]http://www.sxlist.com/techref/scenix/lib/mem/sstack_sx.htm[/url] In essence when you increment the pointer you do: setb dptr.4 ;SX28 bank wrapping adjustment and decrementing is jb dptr.4, :noroll ;SX28 bank wrapping adjustment sub dptr, #16 :noroll rest of code dptr is the index (which must be placed in FSR before indirect access) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89171#m89365 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)