Advertisement
Clownacy

Untitled

Aug 30th, 2018
1,319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DisplaySprite:
  2. ;   lea (Sprite_Table_Input).w,a1   ; 8(2/0)
  3. ;   move.w  priority(a0),d0 ; 12(3/0)
  4. ;   lsr.w   #1,d0       ; 6+2n(1/0)
  5. ;   andi.w  #$380,d0    ; 4(1/0) + 4(1/0)
  6. ;   adda.w  d0,a1       ; 8(1/0) + 0(0/0)
  7.     ; total 44(9/0)
  8. ;   cmpi.w  #$7E,(a1)   ; 8(2/0) + 4(1/0)
  9. ;   bhs.s   return_16510    ; 10(2/0) / 8(1/0)
  10. ;   addq.w  #2,(a1)     ; 8(1/1) + 4(1/0)
  11. ;   adda.w  (a1),a1     ; 8(1/0) + 4(1/0)
  12. ;   move.w  a0,(a1)     ; 8(1/1)
  13.     ; total 52(9/2)
  14.  
  15. ;   lea (Sprite_table_input).w,a1   ; 8(2/0)
  16. ;   adda.w  priority(a0),a1         ; 8(1/0) + 8(2/0)
  17.     ; total 24(5/0)
  18.  
  19.     moveq   #0,d0       ; 4(1/0)
  20.     move.b  priority(a0),d0 ; 12(3/0)
  21.     add.b   d0,d0       ; 4(1/0)
  22.     movea.w PriorityLookup(pc,d0.w),a1  ; 12(3/0)
  23.     ; total 32(8/0)
  24. ; loc_16530:
  25. DisplaySprite3:
  26.     move.w  (a1),d0     ; 8(2/0)
  27.     cmpi.w  #$7E,d0     ; 8(2/0)
  28.     bhs.s   return_16510    ; 10(2/0) / 8(1/0)
  29.     addq.w  #2,(a1)     ; 8(1/1) + 4(1/0)
  30.     move.w  a0,2(a1,d0.w)   ; 14(2/1)
  31.     ; total 50(9/2)
  32.  
  33. return_16510:
  34.     rts
  35. ; End of function DisplaySprite
  36.  
  37. PriorityLookup:
  38.     dc.w    Sprite_Table_Input
  39.     dc.w    Sprite_Table_Input+$80
  40.     dc.w    Sprite_Table_Input+$100
  41.     dc.w    Sprite_Table_Input+$180
  42.     dc.w    Sprite_Table_Input+$200
  43.     dc.w    Sprite_Table_Input+$280
  44.     dc.w    Sprite_Table_Input+$300
  45.     dc.w    Sprite_Table_Input+$380
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement