Skool Daze Routines
Prev: 25106 Up: Map Next: 25126
25108: Update SRB for current location of character
Called by many routines to update the screen refresh buffer when a character has moved. Returns with the character's animatory state in A and coordinates in DE.
H Character number (152-172)
25108 LD L,96 Point HL at byte 96 of the character's buffer
25110 LD B,(HL) B=character's animatory state
25111 INC L L=97
25112 LD D,(HL) D=character's y-coordinate (154-169)
25113 INC L L=98
25114 LD E,(HL) E=character's x-coordinate (0-95)
25115 CALL 25016 Update SRB
25118 LD L,96 Point HL at byte 96 of the character's buffer
25120 LD A,(HL) A=character's animatory state
25121 INC L L=97
25122 LD D,(HL) D=character's y-coordinate (155-169)
25123 INC L L=98
25124 LD E,(HL) E=character's x-coordinate (0-95)
25125 RET
Prev: 25106 Up: Map Next: 25126