Prev: B9F3 Up: Map Next: BA14
BA00: Get Size Offset
Used by the routine at DrawTopStrip.
Subtracts half of the second size at 5CF4, plus the third size at 5CF5, from the screen position at BBA1.
Output
HL The result
GetSizeOffset BA00 LD HL,($BBA1) The screen position.
BA03 LD A,($5CF4) Half of the second size.
BA06 SRL A
BA08 LD E,A
BA09 LD A,($5CF5) Add the third size.
BA0C ADD A,E
BA0D LD E,A
BA0E LD D,$00 Subtract that from the screen position.
BA10 AND A
BA11 SBC HL,DE
BA13 RET Return.
Prev: B9F3 Up: Map Next: BA14