Skool Daze Routines
24972: Get byte from command list
Used by the routines at 25172, 25303, 25534, 27453, 27480, 31834 and 32167. Returns with the byte in A.
H Character number (152-171)
24972 PUSH HL
24973 LD L,117 Bytes 117 & 118 hold the address reached in the command list
24975 LD A,(HL) Pick up the LSB
24976 INC (HL) Move along one byte in the command list
24977 JR NZ,24989 Jump if the LSB flipped over to zero
24979 NOP
24980 NOP
24981 INC L L=118
24982 INC (HL) Increment the MSB
24983 LD H,(HL)
24984 DEC H
24985 LD L,A HL=address of byte to be picked up from the command list
24986 LD A,(HL) Pick up the byte
24987 POP HL
24988 RET
24989 INC L
24990 LD H,(HL) HL=address of byte to be picked up from the command list
24991 JR 24985 Jump back to pick up the byte