Routines |
Prev: CDC4 | Up: Map | Next: CE19 |
|
||||
CDEF | PUSH AF | Cache all working registers. | ||
CDF0 | PUSH BC | |||
CDF1 | PUSH DE | |||
CDF2 | PUSH HL | |||
CDF3 | PUSH IX | |||
CDF5 | PUSH IY | |||
CDF7 | LD HL,($EADE) | Get the Y co-ordinate screen address of the water under the bridge (EADE = 5000). | ||
CDFA | LD DE,$0012 | Add the X co-ordinate to set the start of the water. | ||
CDFD | ADD HL,DE | |||
CDFE | LD C,$07 | Width of the water is 7. | ||
CE00 | CALL $90A8 | Animate the water. | ||
CE03 | LD A,($CE19) | Cycle the timer in this room from 0 - 3. | ||
CE06 | INC A | |||
CE07 | AND $03 | |||
CE09 | LD ($CE19),A | |||
CE0C | CALL Z,$EF2E | When the timer is 0, animate the smoke from the chimney. | ||
CE0F | POP IY | Restore registers. | ||
CE11 | POP IX | |||
CE13 | POP HL | |||
CE14 | POP DE | |||
CE15 | POP BC | |||
CE16 | POP AF | |||
CE17 | EI | Re-enable interrupts and return. | ||
CE18 | RET |
Prev: CDC4 | Up: Map | Next: CE19 |