Prev: 74A4 Up: Map Next: 7592
7564: Routine at 7564
Used by the routines at 7254, 7616 and 79B2.
7564 CALL ConvertScreenToAttributeBufferAddress Call ConvertScreenToAttributeBufferAddress.
7567 EX DE,HL Exchange the DE and HL registers.
7568 LD E,$01 E=01.
756A LD B,$03 B=03.
756C PUSH BC Stash BC on the stack.
756D LD A,(HL) Jump to 7584 if *HL is equal to 46 or 07.
756E CP $46
7570 JR Z,$7584
7572 CP $07
7574 JR Z,$7584
7576 LD (HL),$00 Write 00 to *HL.
7578 PUSH HL Stash HL on the stack.
7579 CALL ConvertAttributeToScreenBufferAddress Call ConvertAttributeToScreenBufferAddress.
757C LD B,$08 B=08.
757E XOR A A=00.
757F LD (HL),A Write A to *HL.
7580 INC H Increment H by one.
7581 DJNZ $757F Decrease counter by one and loop back to 757F until counter is zero.
7583 POP HL Restore HL from the stack.
7584 INC HL Increment HL by one.
7585 POP BC Restore BC from the stack.
7586 DJNZ $756C Decrease counter by one and loop back to 756C until counter is zero.
7588 LD A,E Return if E is zero.
7589 OR A
758A RET Z
758B LD C,$1E C=1E.
758D ADD HL,BC HL+=BC.
758E DEC E Decrease E by one.
758F INC B Increment B by one.
7590 JR $756C Jump to 756C.
Prev: 74A4 Up: Map Next: 7592