Prev: 54A0 Up: Map Next: 55A0
54F2: Prepare addresses 5D00 to 5FFF
Used by the routine at 81B4. Copies 256 bytes from eight 32-byte segments. The routine is called three times with the values in DE and HL shown below. The 24 32-byte segments are used later on as character buffers.
Input
DE 5D00, 5E00 or 5F00
H 0xBF, 0xC7 or 0xCF
L 0x00
54F2 LD A,$08 There are 8 chunks of 32 bytes to copy
54F4 LD BC,$0020 Copy 32 bytes
54F7 LDIR
54F9 INC H Point HL at the next chunk of 32 bytes to copy
54FA LD L,B
54FB DEC A Next chunk
54FC JR NZ,$54F4 Jump back until all 8 chunks have been copied
54FE RET
Prev: 54A0 Up: Map Next: 55A0