; zadaća 2 ; zadatak 1 LDA #05 LDX #$20 LOOP: ADC #12 STA $0200, X INX CPX #47 BNE LOOP LDX #$20 LDY #63 LOOP2: LDA $0200, X INX STA $0200, Y DEY BNE LOOP2 ; zadatak 2 LDX #$04 STX $0200 LDY #$02 STY $0201 PHA JSR sub STA $0210 PLA PHA JSR add STA $0211 PLA JSR end add: CLC LDA $0200 ADC $0201 RTS sub: SEC LDA $0200 SBC $0201 RTS end: