Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;-----------------------\
- ;@@@@@@@@@@@@@@@@@@@@@@@|
- ;@@@Iambian Bullets@@@@@|
- ;@@@@@@@@@@@@@@@@@@@@@@@|
- ;-----------------------/;D=Xofs,E=Yofs,A=Count
- IambianUnFocPwr1:
- IambianUnFocPwr2:
- ;ok we are making dragon fire here label below this is the random routine modded to return 0-15
- ld hl,firedelay
- dec (hl)
- ret nz
- ld (hl),1 ;FIRE DELAY FOR STANDARD SHOT IS TWO
- call lfsrpbt
- and 135
- ld d,a
- ld e,-1
- ld a,15
- call pbtcreate2
- call lfsrpbt
- and 135
- ld d,a
- ld a,15
- call pbtcreate2
- call lfsrpbt
- and 135
- ld d,a
- ld a,15
- call pbtcreate2
- call lfsrpbt
- and 135
- ld d,a
- ld a,15
- call pbtcreate2
- call lfsrpbt
- and 135
- ld d,a
- ld a,15
- call pbtcreate2
- ret
- Lfsrpbt:
- ld hl,lfsrseed
- ld a,(hl)
- rrca
- ld (hl),a
- ret nc
- xor %00111000
- ld (hl),a
- rlca \ rlca \ rlca
- ret
- IambianFocPwr1:
- IambianFocpwr2:
- ret
Advertisement
Add Comment
Please, Sign In to add comment