2 ; Ullrich von Bassewitz, 07.08.1998
4 ; unsigned char revers (unsigned char onoff);
13 ldx #$00 ; Assume revers off
16 ldx #$80 ; Load on value
17 ldy #$00 ; Assume old value is zero
18 L1: lda RVS ; Load old value
19 stx RVS ; Set new value
20 beq L2 ; Jump if old value zero
21 iny ; Make old value = 1
22 L2: ldx #$00 ; Load high byte of result
23 tya ; Load low byte, set CC