Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DisplaySprite:
- ; lea (Sprite_Table_Input).w,a1 ; 8(2/0)
- ; move.w priority(a0),d0 ; 12(3/0)
- ; lsr.w #1,d0 ; 6+2n(1/0)
- ; andi.w #$380,d0 ; 4(1/0) + 4(1/0)
- ; adda.w d0,a1 ; 8(1/0) + 0(0/0)
- ; total 44(9/0)
- ; cmpi.w #$7E,(a1) ; 8(2/0) + 4(1/0)
- ; bhs.s return_16510 ; 10(2/0) / 8(1/0)
- ; addq.w #2,(a1) ; 8(1/1) + 4(1/0)
- ; adda.w (a1),a1 ; 8(1/0) + 4(1/0)
- ; move.w a0,(a1) ; 8(1/1)
- ; total 52(9/2)
- ; lea (Sprite_table_input).w,a1 ; 8(2/0)
- ; adda.w priority(a0),a1 ; 8(1/0) + 8(2/0)
- ; total 24(5/0)
- moveq #0,d0 ; 4(1/0)
- move.b priority(a0),d0 ; 12(3/0)
- add.b d0,d0 ; 4(1/0)
- movea.w PriorityLookup(pc,d0.w),a1 ; 12(3/0)
- ; total 32(8/0)
- ; loc_16530:
- DisplaySprite3:
- move.w (a1),d0 ; 8(2/0)
- cmpi.w #$7E,d0 ; 8(2/0)
- bhs.s return_16510 ; 10(2/0) / 8(1/0)
- addq.w #2,(a1) ; 8(1/1) + 4(1/0)
- move.w a0,2(a1,d0.w) ; 14(2/1)
- ; total 50(9/2)
- return_16510:
- rts
- ; End of function DisplaySprite
- PriorityLookup:
- dc.w Sprite_Table_Input
- dc.w Sprite_Table_Input+$80
- dc.w Sprite_Table_Input+$100
- dc.w Sprite_Table_Input+$180
- dc.w Sprite_Table_Input+$200
- dc.w Sprite_Table_Input+$280
- dc.w Sprite_Table_Input+$300
- dc.w Sprite_Table_Input+$380
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement