Routines |
Prev: F571 | Up: Map | Next: F5BE |
Check the fountain's repaired
|
||||
F572 | LD A,$08 | Is flag 08 (fountain repaired) set? | ||
F574 | CALL $EC1D | |||
F577 | RET Z | Return if not. | ||
The fountain is repaired, so draw it. This entry point is used by the routine at 813B.
|
||||
F578 | LD A,$45 | Set bright cyan on black. | ||
F57A | LD ($F26F),A | |||
Draw bottom right.
|
||||
F57D | LD HL,$9878 | Set the position. | ||
F580 | LD ($A838),HL | |||
F583 | LD A,($F571) | Get the next object ID of the water. | ||
F586 | CALL $A83D | Draw it. | ||
F589 | CALL $EF91 | Set the attributes. | ||
Draw top right.
|
||||
F58C | LD HL,$8868 | Set the position. | ||
F58F | LD ($A838),HL | |||
F592 | CALL $A83D | Draw the water. | ||
F595 | CALL $EF91 | Set the attributes. | ||
Draw bottom left.
|
||||
F598 | LD HL,$9818 | Set the position. | ||
F59B | LD ($A838),HL | |||
F59E | ADD A,$03 | Add 3 to the object ID to get the water facing left instead of right. | ||
F5A0 | CALL $A83D | Draw the water. | ||
F5A3 | CALL $EF91 | Set the attributes. | ||
Draw top left.
|
||||
F5A6 | LD HL,$8828 | Set the position. | ||
F5A9 | LD ($A838),HL | |||
F5AC | CALL $A83D | Draw the water. | ||
F5AF | CALL $EF91 | Set the attributes. | ||
Change the graphic used.
|
||||
F5B2 | SUB $02 | Decrement 2 from the object ID. ie: subtract 3 to get back to the right facing graphics, then add 1 for the next. | ||
F5B4 | CP $53 | Is it 53? | ||
F5B6 | JR NZ,$F5BA | Jump forward if it isn't. | ||
F5B8 | LD A,$50 | Otherwise reset to 50. | ||
F5BA | LD ($F571),A | Set the next ID to use and return. | ||
F5BD | RET |
Prev: F571 | Up: Map | Next: F5BE |