Prev: 45601 Up: Map Next: 45625
45617: Adjust height (at DE) of a window to accommodate text
Used by the routines at 43874, 44635, 45641, 45685, 45723, 45963, 64317 and 64582.
Input
HL Points to height byte preceding text data
DE Points to third byte of an entry in table at 49034 (i.e. y-coordinate of top edge of a window)
Output
HL Points to first byte of text data (i.e. input HL value plus one)
45617 LD A,(HL) Load height data into C...
45618 LD C,A ...
45619 LD A,(DE) Load y-coordinate in characters of window of interest into A
45620 ADD A,C Add height to window's top y-coordinate to get required bottom y-coordinate
45621 INC DE Advance DE to y-coordinate of bottom edge of window...
45622 LD (DE),A ...and load calculated bottom y-coordinate into address in DE
45623 INC HL Advance HL to first byte of actual text data
45624 RET Return
Prev: 45601 Up: Map Next: 45625