* .version: bumped version to 2.5.6 (pic14 ABI changed)
[fw/sdcc] / device / lib / pic / libsdcc / _gptrget2.S
index 4829a62b8a497c7a82fdcc73979fddcd5afa6b30..fcaebe687ad08d30f2eee7c35a72d3944a60833b 100644 (file)
@@ -57,19 +57,19 @@ __gptrget2:
 
 __dataptrget2:
        setup_fsr
-       movf    INDF, W
+       movf    _INDF, W
        movwf   STK00           ; low byte in STK00
        inc_fsr
-       movf    INDF, W         ; high byte in WREG
+       movf    _INDF, W        ; high byte in WREG
        return
 
 __codeptrget2:
        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 MSB