Reworked version by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@2913 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -9,17 +9,17 @@
|
||||
.include "apple2.inc"
|
||||
|
||||
_revers:
|
||||
ldy TEXTTYP ; Stash old value
|
||||
ldy INVFLG ; Stash old value
|
||||
and #$FF ; Test for any bit
|
||||
bne reverse ; Nothing set
|
||||
lda #$FF
|
||||
reverse:
|
||||
ora #$3F
|
||||
sta TEXTTYP
|
||||
beq normal ; Nothing set
|
||||
lda #~$3F ; Not Inverse
|
||||
normal:
|
||||
eor #$FF ; Xor Normal
|
||||
sta INVFLG
|
||||
tya ; What was the old value?
|
||||
eor #$FF ; Normal = $FF, Reverse = $3F
|
||||
eor #$FF ; Normal = $FF, Inverse = $3F
|
||||
beq L2
|
||||
lda #01
|
||||
lda #$01
|
||||
L2:
|
||||
rts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user