Prev: 6918 Up: Map Next: 6969
6949: Print a string
Used by the routines at 6074, 60C1, 628D, 6298, 62A3, 6969, 6974, 698E, 69BB, 6B71, 6BFC and 6C3A.
Input
HL Screen offset of first character
DE Pointer to first character in text
B Length
6949 PUSH DE
694A PUSH HL
694B PUSH BC
694C LD A,(DE) Get character
694D EX DE,HL Get character address and put it in DE
694E LD BC,$3C00 Character set
6951 LD L,A
6952 LD H,$00
6954 ADD HL,HL
6955 ADD HL,HL
6956 ADD HL,HL
6957 ADD HL,BC
6958 EX DE,HL
6959 LD B,$08 8 lines
695B LD A,(DE) Get line
695C LD (HL),A Put it on screen
695D INC H Next line
695E INC DE
695F DJNZ $695B
6961 POP BC
6962 POP HL
6963 POP DE
6964 INC HL
6965 INC DE
6966 DJNZ $6949 Next character
6968 RET
Prev: 6918 Up: Map Next: 6969