Prev: 7097 Up: Map Next: 70B2
70AD: Get Visible Height
Used by the routines at PrepareOldSprite and PrepareActorSprite.
Works out how many lines of a sprite can be drawn upwards from a position without reaching the top row of the screen (which is not part of the play area).
Input
H Y position of the sprite
Output
C Number of lines
GetVisibleHeight 70AD LD A,H Fetch the Y position of the sprite.
70AE SUB $08 Take 08 away, as the top row of the screen is not part of the play area.
70B0 LD C,A Keep the number of lines that can be drawn in C.
70B1 RET Return.
Prev: 7097 Up: Map Next: 70B2