	.code
	.bank 82
	.org $7826
l7826_06: PHX     
          CLX     
l7828_06: LDA     #$a8
          JSR     l7770_06
          CLA     
          JSR     l7754_06
          LDA     $1000
          ASL     A
          ASL     A
          ASL     A
          ASL     A
          STA     <$fe
          LDA     #$01
          JSR     l7754_06
          LDA     $1000
          AND     #$0f
          ORA     <$fe
          CMP     #$04
          BNE     l784f_06
          CLA     
          PLX     
          RTS     
          BRA     l785c_06
l784f_06: INX     
          CPX     #$03
          BCS     l7858_06
          BRA     l7828_06
          BRA     l785c_06
l7858_06: LDA     #$ff
          PLX     
          RTS     
l785c_06: PHA     
          CLA     
          JSR     l7754_06
          PLA     
          RTS     
