Hi all, Thanks for the replies. The version of Pic Basic I'm using is 1.42, it's not PicBasic Pro. Buying a more up-to-date compiler is not an option at the moment. Some progress to report. I've inserted (in another, much smaller program) the following: asm org 0x800 endasm and this causes the following code to be compiled at 0800 onwards. Thanks for this! At least I don't have to go in and edit the .asm file generated by PicBasic. I can place the code where I want in the memory from within PicBasic. I'll try a few more things tomorrow when I'm less tired. My days of writing code (Z80, SC/MP) into the early hours are long gone, I'm afraid! Thanks again, I'll probably have more questions when I get stuck. John Fletcher -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist