On Sat, 18 Aug 2012 11:52:06 -0700 Tamas Rudnai wrote: > Hi John, >=20 > Can you show the test code and the generated disassembly code? >=20 > Tamas Hi Tamas, The code is somewhat difficult politically ;-), apart from the fact that it's 8 modules linked together and quite a few lines... The initial code generated (HEX) is: :020000040000FA :040000000034003494 :0C000400892B000000000000F000030E3B .... The second line contains both retlw's, which are _not_ from my program. I even did a search for 'retlw' in all .asm and .inc files I use. There is none. They seem to come from a separate module. I'm now suspecting this could be some autogenerated code from a data reservation in the program area. But they are not generated by gpasm/gplink. It seems mpasm interprets something differently and generates those... Bad news is that they get linked before the reset and interrupts vectors, and I cannot find a way to change the order. John --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .