ThomasSpeedrunner

Monitor Code Related To RG Object

Jul 12th, 2013
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. lea (Object_Respawn_Table).w,a2
  2. moveq #0,d0
  3. move.b respawn_index(a0),d0
  4. bclr #7,2(a2,d0.w)
  5. btst #0,2(a2,d0.w) ; if this bit is set it means the monitor is already broken
  6. beq.s +
  7. move.b #8,routine(a0) ; set monitor to 'broken' state
  8. move.b #$D,mapping_frame(a0)
  9. rts
Advertisement
Add Comment
Please, Sign In to add comment