![]() |
Routines |
| Prev: DEDC | Up: Map | Next: DF08 |
|
Used by the routine at scroll_landscape.
When the window has moved (record_ground) or during the fly-in: map_row_colour gets the attribute for the upper map row (view_row) and map_row_colour_next the one for the row below -- ground_attr_above for rows below 12 (above ground), ground_attr_below from row 12 (caverns). The routine's tail is called as a subroutine for the first and fallen into for the second.
|
||||
| set_landscape_colours | DEE1 | LD A,(record_ground) | Nothing changed: done. | |
| DEE4 | LD B,A | |||
| DEE5 | LD A,(map_rebuild) | |||
| DEE8 | OR B | |||
| DEE9 | RET Z | |||
| DEEA | LD A,(view_row) | The upper row's attribute. | ||
| DEED | CALL set_landscape_colours_0 | |||
| DEF0 | LD (map_row_colour),A | |||
| DEF3 | LD A,(view_row) | The lower row's. | ||
| DEF6 | INC A | |||
| set_landscape_colours_0 | DEF7 | CP $0C | ||
| DEF9 | LD A,(ground_attr_above) | |||
| DEFC | LD B,A | |||
| DEFD | JR C,set_landscape_colours_1 | |||
| DEFF | LD A,(ground_attr_below) | |||
| DF02 | LD B,A | |||
| set_landscape_colours_1 | DF03 | LD A,B | ||
| DF04 | LD (map_row_colour_next),A | |||
| DF07 | RET | |||
| Prev: DEDC | Up: Map | Next: DF08 |