Routines |
Prev: 62091 | Up: Map | Next: 62236 |
Used by the routine at RunHandlers.
|
|||||
|
|||||
Handler_EnergyBar | 62154 | LD HL,24352 | HL=24352. | ||
62157 | LD DE,26656 | DE=26656. | |||
62160 | LD B,32 | B=32. | |||
62162 | LD C,0 | C=0. | |||
62164 | LD A,255 | A=255. | |||
Handler_EnergyBar_0 | 62166 | LD (HL),C | Write C to *HL. | ||
62167 | LD (DE),A | Write A to *DE. | |||
62168 | INC L | Increment L by one. | |||
62169 | INC E | Increment E by one. | |||
62170 | DJNZ Handler_EnergyBar_0 | Decrease counter by one and loop back to Handler_EnergyBar_0 until counter is zero. | |||
George:
|
|||||
62172 | LD C,34 | C=horizontal co-ordinate (34). | |||
62174 | LD H,106 | H=INK: RED, PAPER: CYAN (BRIGHT) . | |||
62176 | LD A,(53214) | A=*George_Energy. | |||
62179 | CALL Handler_EnergyBar_1 | Call Handler_EnergyBar_1. | |||
Lizzy:
|
|||||
62182 | LD C,44 | C=horizontal co-ordinate (44). | |||
62184 | LD H,108 | H=INK: GREEN, PAPER: CYAN (BRIGHT) . | |||
62186 | LD A,(53261) | A=*Lizzy_Energy. | |||
62189 | CALL Handler_EnergyBar_1 | Call Handler_EnergyBar_1. | |||
Ralph:
|
|||||
62192 | LD C,54 | C=horizontal co-ordinate (54). | |||
62194 | LD H,111 | H=INK: WHITE, PAPER: CYAN (BRIGHT) . | |||
62196 | LD A,(53308) | A=*Ralph_Energy. | |||
62199 | CALL Handler_EnergyBar_1 | Call Handler_EnergyBar_1. | |||
62202 | RET | Return. | |||
Handler_EnergyBar_1 | 62203 | LD B,0 | B=0. | ||
62205 | LD D,B | D=B. | |||
62206 | AND A | Return if the monsters energy is at zero. | |||
62207 | RET Z | ||||
62208 | SUB 8 | Subtract 8 from the monsters energy held by A. | |||
62210 | JR C,Handler_EnergyBar_2 | Jump to Handler_EnergyBar_2 if A was lower than 8. | |||
62212 | EX AF,AF' | Exchange the AF register with the shadow AF register. | |||
62213 | LD E,52 | E=52. | |||
62215 | CALL 55869 | Call 55869. | |||
62218 | EX AF,AF' | Exchange the shadow AF register back to the normal AF register. | |||
62219 | INC C | Increment C by one. | |||
62220 | JR Handler_EnergyBar_1 | Jump to Handler_EnergyBar_1. | |||
Handler_EnergyBar_2 | 62222 | ADD A,8 | A+=8. | ||
62224 | LD E,A | E=A. | |||
62225 | LD A,8 | A=8. | |||
62227 | SUB E | A-=E. | |||
62228 | ADD A,53 | A+=53. | |||
62230 | LD E,A | E=A. | |||
62231 | CALL 55869 | Call 55869. | |||
62234 | INC C | Increment C by one. | |||
62235 | RET | Return. |
Prev: 62091 | Up: Map | Next: 62236 |