Guest User

Untitled

a guest
Jun 11th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. START   ORG $1000  
  2.  
  3.  
  4. string  equ $2000
  5. result  equ $3000
  6. size    equ $4000
  7. program equ $1000
  8.  
  9.     org string
  10.     dc.b    'Ovo je ovdje string'
  11.    
  12.     org size
  13.     dc.b    15
  14.    
  15.     org program
  16.     movea.l     #string, a0
  17.     movea.l     #result, a1
  18.     move.b      size, d0
  19.  
  20. LOOP    beq     DONE
  21.     move.b      (a0)+, (a1)+
  22.     sub.b       #1, d0
  23.     bne     LOOP
  24. DONE   
  25.  
  26.     STOP    #$2000
  27.     END START
Add Comment
Please, Sign In to add comment