![]() |
Routines |
| Prev: D718 | Up: Map | Next: D75A |
|
Used by the routine at sprite_aligned.
|
||||||||||
| patch_sprite_rows | D73C | LD ($D7AD),A | the JR at sprite_row_jump | |||||||
| D73F | LD A,B | the step to the next row, into the ADD at sprite_next_row: 33 less the bytes touched, since a row moves BC on one fewer than that | ||||||||
| D740 | CPL | |||||||||
| D741 | ADD A,$22 | |||||||||
| D743 | LD ($D801),A | |||||||||
| D746 | LD A,(DE) | the height, into byte $19 | ||||||||
| D747 | INC DE | |||||||||
| D748 | LD (IX+$19),A | |||||||||
| D74B | ADD A,(IX+$1B) | if the sprite would run past the top of the screen, draw only the rows below it | ||||||||
| D74E | SUB $C0 | |||||||||
| D750 | JR C,draw_sprite_rows | |||||||||
| D752 | NEG | |||||||||
| D754 | ADD A,(IX+$19) | |||||||||
| D757 | LD (IX+$19),A | |||||||||
| Prev: D718 | Up: Map | Next: D75A |