]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/revers.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / atari / revers.s
index ee59e7129a7cd74285e71d9cd657d1009818a948..ff22dbf28c5f867b8a10ea24d0dfac748298b105 100644 (file)
@@ -6,6 +6,7 @@
        .include "atari.inc"
        
        .export         _revers
+       .export         _revflag
 
 _revers:
        ldx     #$00            ; Assume revers off
@@ -13,11 +14,15 @@ _revers:
        beq     L1              ; Jump if off
        ldx     #$80            ; Load on value
 L1:    ldy     #$00            ; Assume old value is zero
-       lda     INVFLG          ; Load old value
-       stx     INVFLG          ; Set new value
+       lda     _revflag        ; Load old value
+       stx     _revflag        ; Set new value
        beq     L2              ; Jump if old value zero
        iny                     ; Make old value = 1
 L2:    ldx     #$00            ; Load high byte of result
        tya                     ; Load low byte, set CC
        rts
 
+       .bss
+
+_revflag:
+       .res    1