In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: You can a simple test at the start: org #200 cjae opcode,#67,@jumptable2 ;example value = start opcode in next jump table mov w,opcode add pc,w ;jumptable1 for opcodes 0-66 org $400 jumptable2: mov w,opcode sub w,#67 add pc,w ;jumptable2 for opcodes>=67 You can extend this to more pages. But I don't think you will reach 256 opcodes as there is only 2K codespace in a SX28. For 256 routines that would be 8 words per routine, not counting the jumptables. If you limit the opcodes to 127 then at most two jumptables are required. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=125768#m125776 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)