Prev: 8A1B Up: Map Next: 8A4E
8A33: Initialize UDG and screen attributes.
Sets border to black, fills lower screen attributes with white-on-black, and copies UDG graphics to the UDG area.
init_udg 8A33 LD A,$00 Set border to black via OUT to port $FE.
8A35 OUT ($FE),A
8A37 LD B,$C0 Fill screen attributes starting at screen_attributes_row_17.
8A39 LD HL,$5A40
init_udg_loop 8A3C LD (HL),$07
8A3E INC HL
8A3F DJNZ init_udg_loop
8A41 LD HL,$825D Copy $68 bytes from udg_data to UDG area pointed by CHARS system variable.
8A44 LD DE,($5C7B)
8A48 LD BC,$0068
8A4B LDIR
8A4D RET
Prev: 8A1B Up: Map Next: 8A4E