Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PSHT_CreateBullet: ;in: E=Yoffset, D=Xoffset, C=User(Count) B=Flags.
- ;Destroys HL,BC,DE,AF.
- ld hl,chary
- ld a,(hl)
- ;srl a
- ;srl a
- ;add a,e
- ;and %00111111 ; Why do we and this? and shouldent it be above the and(i moved it there)
- rra
- rra
- and %00111111
- add a,e ; does the same thing seeing as we are anding it. saves 8cc's and 2 bytes
- ld e,a
- inc hl
- ld a,(hl)
- ;srl a
- ;srl a
- ;add a,d
- ;and %00111111 ; " " " "
- rra
- rra
- and %00111111
- add a,d
Advertisement
Add Comment
Please, Sign In to add comment