LDA #5 STO [110 ; wartosc poczatkowa LDA #4 STO [111 ; maska dla bitu 3 LDA #8 STO [120 ; maska dla bitu 4 LDA #0 STO [114 LDA #0 STO [115 LDA [110 AND [111 JZ #47 LDA #1 STO [114 ; 3 bit LDA [110 AND [120 JZ #52 LDA #1 STO [115 ; 4 bit LDA [110 SHLA ; przesuniecie wartosci w lewo AND #15 STO [118 ; wartosc TEMP LDA [114 ; zaladowanie 3 bitu XOR [115 ; 3bit XOR 4bit JZ #62 LDA [118 ADD #1 ; ustawienie 0bitu na 1 STO [118 LDA [118 STO [110 JMP #38 STOP
Wyszukiwarka