Prev: BAD6 Up: Map Next: BAFB
BAEE: Print string loop
Used by the routines at M2PRIN and MPRINT.
Input
HL Address
E length
print_string_loop BAEE LD A,(HL) load byte from address in HL
BAEF PUSH HL preserve HL and DE
BAF0 PUSH DE
BAF1 CALL DH_P call DH_P to print character in A at coordinates in BC
BAF4 POP DE restore DE and HL
BAF5 POP HL
BAF6 DEC E decrement E
BAF7 INC HL increment HL to point at the next character in string
BAF8 JR NZ,print_string_loop loop back to print_string_loop until E = 0
BAFA RET return
Prev: BAD6 Up: Map Next: BAFB