]> git.gag.com Git - fw/sdcc/blobdiff - device/lib/pic/libsdcc/_gptrget4.S
* .version: bumped version to 2.5.6 (pic14 ABI changed)
[fw/sdcc] / device / lib / pic / libsdcc / _gptrget4.S
index 3648832c1bede2a33cb7c3664680bc185b3de7aa..3d3158d5e1f8502192356f912ace3d38d38c45b6 100644 (file)
@@ -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