Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- START ORG $1000
- string equ $2000
- result equ $3000
- size equ $4000
- program equ $1000
- org string
- dc.b 'Ovo je ovdje string'
- org size
- dc.b 15
- org program
- movea.l #string, a0
- movea.l #result, a1
- move.b size, d0
- LOOP beq DONE
- move.b (a0)+, (a1)+
- sub.b #1, d0
- bne LOOP
- DONE
- STOP #$2000
- END START
Add Comment
Please, Sign In to add comment