MMBC

_HorizLine_NoClip

Aug 2nd, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. __HorizLine_NoClip:
  2.     ld ix, 0
  3.     add ix, sp
  4.     ld bc, (ix+9)
  5.     ld hl, (ix+6)
  6.     ld de, (ix+3)
  7.     or a
  8.     sbc hl, de
  9.     jp p, +_
  10.     add hl, de
  11.     ex de, hl
  12.     sbc hl, de
  13.     push hl
  14.     jr ++_
  15. _:
  16.     push hl
  17. _:
  18.     ld c, (ix+9)
  19.     ld b, 160
  20.     mlt bc
  21.     ld hl, (ix+6)
  22.     add hl, bc
  23.     add hl, bc
  24.     ld de, $D40000
  25.     add hl, de
  26.     push hl
  27.     pop de
  28.     inc de
  29.     pop bc
  30.     ld (hl), a
  31.     ldir
  32.     ret
Advertisement
Add Comment
Please, Sign In to add comment