Prev: A035 Up: Map Next: A082
A071: Set morale flag screen attributes
This sets the screen attributes for the morale flag.
Used by the routines at in_permitted_area and main.
Input
A Screen attributes to use.
set_morale_flag_screen_attributes A071 LD HL,$5842 Point HL at the top-left attribute byte of the morale flag
A074 LD DE,$001E Set DE to the rowskip (32 attributes per row, minus 2)
A077 LD B,$13 The flag is 19 attributes high
Start loop
set_morale_flag_screen_attributes_0 A079 LD (HL),A Write out three attribute bytes
A07A INC L
A07B LD (HL),A
A07C INC L
A07D LD (HL),A
A07E ADD HL,DE Move to next row
A07F DJNZ set_morale_flag_screen_attributes_0 ...loop
A081 RET Return
Prev: A035 Up: Map Next: A082