![]() |
Routines |
| Prev: B889 | Up: Map | Next: B8B5 |
|
Used by the routine at update_special_beam.
The frame (+15 bits 0-3, from 0 to 5 and round again) is expanded into the sprite buffer at the end of build_shifted_pieces (beam_frames), and its height goes into the fifth byte of old_sprite_x, the lines erase_laser rubs out.
|
||||||||||||
| old_beam_frame | B897 | LD DE,$F800 | the frame's graphic (beam_frame) | |||||||||
| B89A | CALL beam_frame | |||||||||||
| B89D | LD A,(IX+$15) | the next frame, 0 to 5, keeping bit 7 | ||||||||||
| B8A0 | AND $0F | |||||||||||
| B8A2 | INC A | |||||||||||
| B8A3 | CP $06 | |||||||||||
| B8A5 | JR NZ,old_beam_frame_0 | |||||||||||
| B8A7 | XOR A | |||||||||||
| old_beam_frame_0 | B8A8 | OR $80 | ||||||||||
| B8AA | LD (IX+$15),A | |||||||||||
| B8AD | EX DE,HL | the height for rubbing out; expand it (expand_beam_frame) | ||||||||||
| B8AE | LD A,(DE) | |||||||||||
| B8AF | LD (old_sprite_rows),A | |||||||||||
| B8B2 | JP expand_beam_frame | |||||||||||
| Prev: B889 | Up: Map | Next: B8B5 |