Guys: I am having trouble with the ASM30 suite.. It must be something simple but = I cant see it. When I have a piece of code operating properly in the main source file it operates. I then lift the segment and transfer it to an include file it the= n fails to link properly and all the calls get routed to totally the wrong addresses... I have included a snip from each file if its helpful.. Thanks Steve Main code ..equ __p24FJ128GA010.inc, 1 ; processor definition ..include "p24FJ128GA010.inc" ; INCLUDE FILE ..global __reset ..global delay ..text __reset: mov #0x0A00, W8 mov W8, SPLIM mov #0x0980, W15 nop call Start_TXT nop mov.b #'F',W0 call TXT_Dta mov.b #'U',W0 Code from include file ..text ..global delay ;-------------LCD Port setup with standard text module----------------------- Start_TXT: mov #0b1111101111111011,W0 mov W0,TRISD ; RS,E outputs bclr PORTD,#0x02 ; E low clr PORTE mov #0xFF00,W0 ; E0-7=20 mov W0,TRISE ; make outputs=20 mov.b #0x38,W0 ; 8 bit call TXT_Cmd mov.b #0x06,W0 ; display on call TXT_Cmd=09 mov.b #0x0C,W0 ; cant remember call TXT_Cmd mov.b #0x01,W0 call TXT_Cmd return TXT_Cmd: ; W0 contains byte W1 =3D bit counter bclr PORTD,#0xA ; command goto TXT_Out ; jump TXT_Dta: bset PORTD,#0xA ; Data TXT_Out: mov W0,PORTE ; data on port Assembly listing 3: =20 4: .equ __p24FJ128GA010.inc, 1 ; processor definition 5: .include "p24FJ128GA010.inc" ; INCLUDE FILE 6: =20 7: .global __reset 8: .global delay 002D0 2FBFB0 mov.w #0xfbfb,0x0000 9: =20 002D2 881690 mov.w 0x0000,0x02d2 10: .text 002D4 A942D4 bclr.b 0x02d4,#2 11: __reset: 002D6 EF22DA clr.w 0x02da 12: =20 13: =20 002D8 2FF000 mov.w #0xff00,0x0000 14: =20 00204 20A008 mov.w #0xa00,0x0010 15: mov #0x0A00, W8 002DA 8816C0 mov.w 0x0000,0x02d8 00206 880108 mov.w 0x0010,0x0020 16: mov W8, SPLIM 00208 20980F mov.w #0x980,0x001e 17: mov #0x0980, W15 002DC B3C380 mov.b #0x38,0x0000 002DE 0202F6 call 0x0002f6 18: =20 002E0 000000 nop 0020A 000000 nop 19: nop 002E2 B3C060 mov.b #0x6,0x0000 002E4 0202F6 call 0x0002f6 20: =20 002E6 000000 nop 0020C 0202D0 call 0x0002d0 21: call Start_TXT 0020E 000000 nop 002E8 B3C0C0 mov.b #0xc,0x0000 00210 000000 nop 22: nop 002EA 0202F6 call 0x0002f6 002EC 000000 nop 00212 B3C460 mov.b #0x46,0x0000 23: mov.b #'F',W0 002EE B3C010 mov.b #0x1,0x0000 00214 0202FC call 0x0002fc 24: call TXT_Dta 00216 000000 nop 002F0 0202F6 call 0x0002f6 002F2 000000 nop 00218 B3C550 mov.b #0x55,0x0000 25: mov.b #'U',W0 002F4 060000 return 0021A 0202FC call 0x0002fc 26: call TXT_Dta 0021C 000000 nop 0021E B3C430 mov.b #0x43,0x0000 27: mov.b #'C',W0 00220 0202FC call 0x0002fc 28: call TXT_Dta 00222 000000 nop 002F6 A942D5 bclr.b 0x02d5,#2 00224 B3C4B0 mov.b #0x4b,0x0000 29: mov.b #'K',W0 002F8 0402FE goto 0x0002fe 002FA 000000 nop 00226 0202FC call 0x0002fc 30: call TXT_Dta 00228 000000 nop 0022A B3C490 mov.b #0x49,0x0000 31: mov.b #'I',W0 002FC A842D5 bset.b 0x02d5,#2 0022C 0202FC call 0x0002fc 32: call TXT_Dta 0022E 000000 nop --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .