Geekboy

Untitled

Apr 10th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NOTFRESH
  2. LutHandlerStart:
  3. ;Flow
  4. ;Decrement timer
  5. ;Check for z or c
  6. ;If 2 move to next
  7. ;if 1 move to follow player
  8. ;if 0 well you shuoldent ever be here if it is zer0
  9. ;else increment based on type
  10. ;assume nothing is loaded as we may jump back here. later. can be removed if needed tho
  11.   ld hl,-3
  12.   add hl,sp
  13.   ld a,(hl)  ; ld a with flags
  14.   ld b,a     ; save in b
  15.   rla \ rla
  16.   dec a             ; shift dec
  17.   add a,a \ add a,a ; shift back
  18.  
  19.   or b              ; save back
  20.   jr C,FollowPlayer
  21.   jr z,IncLut
  22.   ld (hl),a         ; save back into flags
Advertisement
Add Comment
Please, Sign In to add comment