Routines

25213: Collect one byte from table of A&P


Used by several routines

H Character number (183-214)

25213 E5 PUSH HL
25214 2E19 LD L,25 Bytes 25 and 26 of the character's buffer hold the address of the point reached in the table of A&P
25216 7E LD A,(HL) Pick up the LSB of this address
25217 34 INC (HL) Move the pointer along one
25218 23 INC HL
25219 2007 JR NZ,25228 Jump unless the LSB was incremented to 0
25221 34 INC (HL) Increment the MSB
25222 66 LD H,(HL)
25223 25 DEC H
25224 6F LD L,A HL=address of point reached in table of A&P
25225 7E LD A,(HL) Pick up the byte we're interested in
25226 E1 POP HL
25227 C9 RET
25228 66 LD H,(HL)
25229 6F LD L,A HL=address of point reached in table of A&P
25230 7E LD A,(HL) Pick up the byte we're interested in
25231 E1 POP HL
25232 C9 RET