LDA $77 BIT #$04 BEQ .NotFlip LDA $16 BIT #$80 BEQ .NotFlip LDA #$02 STA $066D LDA $96 STA $1763 STZ $1764 REP #$20 LDA #$0120 SEC SBC $1763 STA $96 SEP #$20 LDA #$FF STA $78 .NotFlip LDA #$80 TRB $16 TRB $18 RTS