Prev: A147 Up: Map Next: A173
A15F: Set game window attributes
This, starting at $5847, sets 23 columns of 16 rows to the specified attribute byte.
Input
A Attribute byte.
set_game_window_attributes A15F LD HL,$5847 Point HL at the top-left game window attribute
A162 LD C,$10 Set rows to 16
A164 LD DE,$0009 Set rowskip to 9 (32 - 23 columns)
Start loop
set_game_window_attributes_0 A167 LD B,$17 Set columns to 23
Start loop
set_game_window_attributes_1 A169 LD (HL),A Set attribute byte
A16A INC L Step to the next
A16B DJNZ set_game_window_attributes_1 ...loop
A16D ADD HL,DE Add rowskip
A16E DEC C Decrement row counter
A16F JP NZ,set_game_window_attributes_0 ...loop
A172 RET Return
Prev: A147 Up: Map Next: A173