Prev: 5DD8 Up: Map Next: 5E08
5DE7: Scroll a line of text onto the screen
Used by the routine at 5D80.
Input
HL Pointer to the string to display
DE Destination address on screen
5DE7 LD B,$20 Number of characters to scroll
5DE9 PUSH BC
5DEA PUSH HL
5DEB PUSH DE
5DEC LD A,(HL) Get the next character
5DED LD BC,($5C36) Get the CHARS system variable
5DF1 LD L,A Convert it to a location in the character set
5DF2 LD H,$00
5DF4 ADD HL,HL
5DF5 ADD HL,HL
5DF6 ADD HL,HL
5DF7 ADD HL,BC
5DF8 LD B,$08 8 lines per character
5DFA LD A,(HL) Copy the value
5DFB LD (DE),A
5DFC INC HL Next byte
5DFD INC D Onto the next line
5DFE DJNZ $5DFA
5E00 POP DE Restore registers
5E01 POP HL
5E02 POP BC
5E03 INC DE Onto the next character
5E04 INC HL
5E05 DJNZ $5DE9
5E07 RET
Prev: 5DD8 Up: Map Next: 5E08