Geekboy

Untitled

Apr 6th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PSHT_CreateBullet: ;in: E=Yoffset, D=Xoffset, C=User(Count) B=Flags.
  2. ;Destroys HL,BC,DE,AF.
  3.  ld hl,chary
  4.  ld a,(hl)
  5.  ;srl a
  6.  ;srl a
  7.  ;add a,e
  8.  ;and %00111111   ; Why do we and this? and shouldent it be above the and(i moved it there)
  9.  rra
  10.  rra  
  11.  and %00111111
  12.  add a,e ; does the same thing seeing as we are anding it. saves 8cc's and 2 bytes
  13.  ld e,a
  14.  inc hl
  15.  ld a,(hl)
  16.  ;srl a
  17.  ;srl a
  18.  ;add a,d
  19.  ;and %00111111  ;    "    "    "   "
  20.  rra
  21.  rra
  22.  and %00111111
  23.  add a,d
Advertisement
Add Comment
Please, Sign In to add comment