Advertisement
luckytyphlosion

attempt on copying tilemap in 1 frame

Sep 30th, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     ld a, 18
  2.     add l
  3.     ld l, a
  4.    
  5.     ld bc, 31
  6.  
  7. doublecolcopy: MACRO
  8.     coord sp, 18, coord_const
  9.     pop de
  10.     ld a, e
  11.     ld [hli], a
  12.     ld [hl], d
  13.     add hl, bc
  14. coord_const = coord_const + 1
  15. ENDM
  16.    
  17.     rept 14
  18.     doublecolcopy
  19.     endr
  20.    
  21.     coord sp, 18, 17
  22.     pop de
  23.     ld a, e
  24.     ld [hli], a
  25.     ld [hl], d
  26.    
  27.     ld a, [H_SPTEMP]
  28.     ld l, a
  29.     ld a, [H_SPTEMP + 1]
  30.     ld h, a
  31.     ld sp, hl
  32.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement