Prev: 9E15 Up: Map Next: 9E67
9E3D: Configure data for Rex teleporting when dead
Used by the routine at 9CC5.
9E3D LD DE,$D552 Set DE sound data for Rex dead
9E40 CALL $D37F Configure sound channel and mixer register
9E43 XOR A Deactivate shield
9E44 LD ($A1E2),A
9E47 LD A,$01
9E49 LD ($A1F8),A Set Rex atoms flushing active
9E4C LD ($A1F9),A Set teleporting active
9E4F LD ($A1FB),A Set teleporting after Rex dead
9E52 LD A,($A1F6) Set Rex visible
9E55 LD L,A
9E56 LD ($A1F6),A
9E59 LD ($A1F7),A Set Rex visibility counter to 1
9E5C LD A,$64 Set teleporting counter loop to 100
9E5E LD ($A1FA),A
9E61 LD A,L Return if Rex visible
9E62 OR A
9E63 RET NZ
9E64 JP $9E29 Jump to reset teleporting buffer data and sound play
Prev: 9E15 Up: Map Next: 9E67