Dandaman955

...

Oct 28th, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; ======================================================================
  2.  
  3. loc_11b16:
  4.                moveq   #0,d5                    ; Clear d5.
  5.                 move.w  #$C000,d5                ; Set to write to a region of Plane A.
  6.                 bsr.w   loc_10f24                ; Get a VRAM address in d5.
  7.                 lsl.w   #2,d4                    ; Multiply by 4 for 4 byte entry tables.
  8.                 move.w  loc_11b3c(pc,d4.w),d7    ; Get amount of horizontal tiles to write.
  9.                 move.w  loc_11b3c+2(pc,d4.w),d6  ; Get amount of vertical tiles to write.
  10.                 lsr.w   #1,d4                    ; Divide by 2 for 2 byte entry tables.
  11.                 moveq   #-1,d2                   ; Set d2 to $FFFFFFFF (for address).
  12.                 move.w  loc_11b54(pc,d4.w),d2    ; Overwrite lower word with RAM address.
  13.                 movea.l d2,a6                    ; Move the RAM address into a6.
  14.                 movea.l (a6),a6                  ; Move the mappings address in that RAM address into a6.
  15.                 bsr.w   loc_10f70                ; Write onto the screen.
  16.                 rts                              ; Return.
  17.  
  18. ; ----------------------------------------------------------------------
  19.  
  20. loc_11b3c:
  21.                dc.w    $0002
  22.                 dc.w    $0002
  23.  
  24.                 dc.w    $0001
  25.                 dc.w    $0001
  26.  
  27.                 dc.w    $0001
  28.                 dc.w    $0002
  29.  
  30.                 dc.w    $0001
  31.                 dc.w    $0002
  32.  
  33.                 dc.w    $0004
  34.                 dc.w    $0002
  35.  
  36.                 dc.w    $0003
  37.                 dc.w    $0003
  38.  
  39. loc_11b54:
  40.                dc.w    $D81C
  41.                 dc.w    $D820
  42.                 dc.w    $D824
  43.                 dc.w    $D810
  44.                 dc.w    $D814
  45.                 dc.w    $D818
  46.  
  47. ; ======================================================================
Advertisement
Add Comment
Please, Sign In to add comment