Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *-----------------------------------------------------------
  2. * Title      :
  3. * Written by :
  4. * Date       :
  5. * Description:
  6. *-----------------------------------------------------------
  7.     ORG    $1000
  8. START:                  
  9. start
  10.     lea tab(pc),a0
  11.     moveq #1,d0
  12.     move.l #18,d1
  13.     move.w d1,d5
  14.     lsr.w  #1,d5
  15.  
  16. loop
  17.  
  18.     move.l d1,d2
  19.     divu.w d0, d2
  20.     swap d2
  21.     cmp.w #0, d2
  22.     bne.s next
  23.  
  24. zapisz move.w d0, (a0)+
  25. next  addq.w #1,d0
  26.     cmp.w  d5,d0
  27.     ble.s loop
  28.     move.w d1, (a0)
  29.  
  30. zakoncz
  31.  
  32. tab
  33.     dc.w $0000,0,0,0,0
  34.     ds.w 20
  35.     END    START        ; last line of source
  36.  
  37. *~Font name~Courier New~
  38. *~Font size~10~
  39. *~Tab type~1~
  40. *~Tab size~4~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement