Advertisement
Guest User

Untitled

a guest
Jul 4th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @wait       tst.w   vdp_counter.l           ; test the V
  2.         bmi.s   @wait               ; if still at bottom, branch
  3.  
  4. @0      move.w  vdp_counter.l,d0        ; get H/V
  5.         cmp.b   d6,d0               ; is H past the line already?
  6.         bcs.s   @0              ; if not, branch
  7.         move.w  d2,(a5)             ; disable display
  8.         move.l  d4,(a5)             ; set CRAM write at slot #$01 from line #$00
  9.         move.l  (a0)+,(a6)          ; send 2 colors
  10.     ;   move.l  d5,(a5)             ; set VS-RAM write for Plane A
  11.     ;   move.w  (a0),(a6)           ; send Vscroll value, skips auto-inc (fix for Kega)
  12.         move.w  d3,(a5)             ; enable display
  13.         lea 2(a0),a0            ; increase pointer AFTER enabling display (fix for Kega)
  14. @wait0      move.w  vdp_counter.l,d0        ; get H/V
  15.         tst.b   d0              ; has new line begun?
  16.         bmi.s   @wait0              ; if not yet, branch
  17.         dbf d7,@0               ; repeat for all colors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement