Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. move.l screen_a_ptr,a2
  2. add.l #160*68,a2
  3. MOVE.L #tiles_image+34,a0
  4. move.l #tile_table,a6
  5. move.w tile_count,d0
  6. lsl.w #1,d0
  7. add.w d0,a6
  8. add.w (a6),a0
  9.  
  10. move.l #2-1,d7
  11. .blit_plane
  12. move.l #SOURCE_X_INC,a1
  13. move.w #8,(a1)+ ;Source X Inc: Number of bytes to reach next word to copy
  14. move.w #8,(a1)+ ;Source Y Inc, number of bytes until next LINE to copy
  15. move.l a0,(a1)+ ;Source Address - Where to copy FROM
  16. move.w #-1,(a1)+ ;Endmask 1
  17. move.w #-1,(a1)+ ;Endmask 2
  18. move.w #-1,(a1)+ ;Endmask 3
  19. move.w #8,(a1)+ ;Dest X Inc, how many bytes until next word to write
  20. move.w #8,(a1)+ ;Dest Y inc, number of bytes until next line
  21. move.l a2,(a1)+ ;Dest Address, where to copy the data TO
  22. move.w #40,(a1)+ ;How many words to copy per line
  23. move.w #48,(a1)+ ;How many lines to copy
  24. move.b #2,(a1)+ ;Set HOP Setting
  25. move.b #3,(a1)+ ;Set OP Setting
  26. move.b #0,SKEW_REG ;No skew needed
  27. move.b #128+64,CONTROL_REG ;Set Blitter to HOG Mode
  28. add.w #2,a0
  29. add.w #2,a2 ;Next plane of both data and screen
  30. dbf d7,.blit_plane ;Number of planes
  31.  
  32. add.w #1,tile_count
  33.  
  34. rts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement