![]() |
Routines |
| Prev: 56824 | Up: Map | Next: 57079 |
|
Used by the routine at ScrollWorld.
Does nothing unless the tiles have just changed or the world is being scrolled in at the start of a life. Sets the attributes of the background for the two rows of the tile at TopTileColour and BottomTileColour.
|
||||
| SetRowAttributes | 57057 | LD A,(23613) | The tiles changed. | |
| 57060 | LD B,A | B=A. | ||
| 57061 | LD A,(23612) | The scroll-in flag. | ||
| 57064 | OR B | Set the bits of A that are set in B. | ||
| 57065 | RET Z | Return if the zero flag is set. | ||
| 57066 | LD A,(52824) | The map row. | ||
| 57069 | CALL ChooseRowAttribute | Call ChooseRowAttribute. | ||
| 57072 | LD (23610),A | Update the top-tile colour. | ||
| 57075 | LD A,(52824) | The map row. | ||
| 57078 | INC A | Advance A. | ||
|
Continue on to ChooseRowAttribute.
|
||||
| Prev: 56824 | Up: Map | Next: 57079 |