Guest User

Untitled

a guest
Aug 29th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Arpeggio
  2.     MOVEQ   #0,D0
  3.     MOVE.L  Counter(PC),D0
  4.     DIVS    #3,D0
  5.     SWAP    D0
  6.     CMP.W   #1,D0
  7.     BEQ Arpeggio1
  8.     CMP.W   #2,D0
  9.     BEQ Arpeggio2
  10. Arpeggio0
  11.     MOVE.W  n_period(A6),D2
  12.     BRA ArpeggioSet
  13.  
  14. Arpeggio1
  15.     MOVEQ   #0,D0
  16.     MOVE.B  n_cmdlo(A6),D0
  17.     LSR.B   #4,D0
  18.     BRA ArpeggioFind
  19.  
  20. Arpeggio2
  21.     MOVEQ   #0,D0
  22.     MOVE.B  n_cmdlo(A6),D0
  23.     AND.B   #15,D0
  24. ArpeggioFind
  25.     ASL.W   #1,D0
  26.     MOVEQ   #0,D1
  27.     MOVE.B  n_finetune(A6),D1
  28.     MULU    #37*2,D1
  29.     LEA PeriodTable(PC),A0
  30.     ADD.L   D1,A0
  31.     MOVEQ   #0,D1
  32.     MOVE.W  n_period(A6),D1
  33.     MOVEQ   #$24,D7
  34. arploop MOVE.W  (A0,D0.W),D2
  35.     CMP.W   (A0),D1
  36.     BHS ArpeggioSet
  37.     ADDQ.L  #2,A0
  38.     DBRA    D7,arploop
  39.     RTS
  40.  
  41. ArpeggioSet
  42.     MOVE.W  D2,6(A5)
  43.     RTS
Add Comment
Please, Sign In to add comment