         org $fffe
         fdb start
         org $a000

start    ldaa #%11111100
         staa 0

branje   ldaa $0002
         anda #%00000011
         cmpa #%00000011
         beq dol

         ldab #%0
         stab 2
         jmp branje

dol      ldab #%00000111
         stab 2
         jmp branje
