X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fpic%2Flibsdcc%2F_gptrget4.S;h=3356ce0d8e87c8eac09973b40eaa0e5acbe1bc1d;hb=89385e621020b4d6dc6e758ff7ee7fa11e662cf5;hp=3648832c1bede2a33cb7c3664680bc185b3de7aa;hpb=52eb93f73f643bc7175d8f6ea06ec78b1026f001;p=fw%2Fsdcc diff --git a/device/lib/pic/libsdcc/_gptrget4.S b/device/lib/pic/libsdcc/_gptrget4.S index 3648832c..3356ce0d 100644 --- a/device/lib/pic/libsdcc/_gptrget4.S +++ b/device/lib/pic/libsdcc/_gptrget4.S @@ -1,7 +1,7 @@ ; ------------------------------------------------------------------------- ; _gptrget4.S - read four bytes pointed to by a generic pointer ; -; Written By Raphael Neider, rneider@web.de (2005) +; Written By Raphael Neider (2005) ; ; This library is free software; you can redistribute it and/or ; modify it under the terms of the GNU Library General Public @@ -59,37 +59,37 @@ __gptrget4: __dataptrget4: setup_fsr - movf INDF, W + movf _INDF, W movwf STK02 ; LSB in STK02 inc_fsr - movf INDF, W + movf _INDF, W movwf STK01 ; 2nd byte in STK01 inc_fsr - movf INDF, W + movf _INDF, W movwf STK00 ; 3rd byte in STK00 inc_fsr - movf INDF, W ; MSB in WREG + movf _INDF, W ; MSB in WREG return __codeptrget4: pagesel __codeptrget1 ; might reside in different page call __codeptrget1 movwf STK02 ; temporarily store LSB - incfsz STK01,F ; increment low address byte - decf STK00,F ; undo increment of high address byte if low byte did not overflow - incf STK00,F ; increment high address byte + incfsz STK01,F ; increment low address byte + decf STK00,F ; undo increment of high address byte if low byte did not overflow + incf STK00,F ; increment high address byte pagesel __codeptrget1 ; might reside in different page call __codeptrget1 movwf STK03 ; temporarily store 2nd byte - incfsz STK01,F ; increment low address byte - decf STK00,F ; undo increment of high address byte if low byte did not overflow - incf STK00,F ; increment high address byte + incfsz STK01,F ; increment low address byte + decf STK00,F ; undo increment of high address byte if low byte did not overflow + incf STK00,F ; increment high address byte pagesel __codeptrget1 ; might reside in different page call __codeptrget1 movwf STK04 ; temporarily store 3rd byte - incfsz STK01,F ; increment low address byte - decf STK00,F ; undo increment of high address byte if low byte did not overflow - incf STK00,F ; increment high address byte + incfsz STK01,F ; increment low address byte + decf STK00,F ; undo increment of high address byte if low byte did not overflow + incf STK00,F ; increment high address byte pagesel __codeptrget1 ; might reside in different page call __codeptrget1 movwf STK05 ; temporarily store MSB