LDX #$24 STX $200 LDY #$23 STY $210 CLC LDA $200 ADC $210 STA $220 ------------------ LDA #$01 STA $0200 LDA #$05 STA $0201 LDA #$08 STA $0202 LDA #$07 STA $0203 LDA #$05 STA $0210 LDA #$09 STA $0211 LDA #$10 STA $0212 LDA #$11 STA $0213 LDA $0200 ADC $0210 STA $0220 CLC LDA $0201 ADC $0211 STA $0221 CLC LDA $0202 ADC $0212 STA $0222 CLC LDA $0203 ADC $0213 STA $0223 CLC --------------- LDX #3 ; postavljamo X na 3 te ga koristimo kao counter CLR carry ; brišemo carry loop: LDA $200,X ; učitavamo prvi bit prvog broja u registar A CLC ; brišemo carry ADC $210,X ; dodavamo odgovarajući byte drugog broja u regstar A STA $220,X ; spremamo rezultat u memoriju DEX ; dekrementiramo X BPL loop; ako X nije negativan vraćamo se u loop ---------------- LDA #$a2 STA $200 LDA #$e4 STA $201 LDA #$0f STA $210 LDA #$68 STA $211 LDA $200 ADC $210 STA $220 LDA $201 ADC $211 STA $221 BCC END LDA #$1 STA $222 END: ------------------------ LDA #$01 STA $200 LDA #$05 STA $201 LDA #$07 STA $202 LDA #$04 STA $203 LDA #$01 STA $210 LDA #$05 STA $211 LDA #$07 STA $212 LDA #$04 STA $213 LDA $200 ADC $210 STA $220 CLC LDA $201 ADC $211 STA $221 CLC LDA $202 ADC $212 STA $222 CLC LDA $203 ADC $213 STA $223 CLC ------------------- LDA #$9A STA $0203 LDA #$90 STA $0202 LDA #$10 STA $0201 LDA #$4A STA $0200 LDA #$50 STA $0213 LDA #$CA STA $0212 LDA #$5D STA $0211 LDA #$83 STA $0210 LDX #$03 CLC ZBROJ: LDA $0200, X ADC $0210, X STA $0220, X DEX -----------------------