Dynamite Dan | Routines |
Prev: CE72 | Up: Map | Next: CEA4 |
Used by the routine at CBBD.
|
||||
CE76 | LD A,($CFCA) | Get the current room. (CFCA) | ||
CE79 | CP $1B | Is it the room with the safe? | ||
CE7B | RET NZ | Return if it's not. | ||
This is the safe room, see if there's anything extra to draw.
|
||||
CE7C | LD A,($C87E) | Is the safe locked? | ||
CE7F | BIT 0,A | |||
CE81 | JR NZ,$CE8C | Jump forward if not. | ||
The safe's locked, so need's drawing.
|
||||
CE83 | LD DE,$140A | Set DE to the position. | ||
CE86 | LD HL,$EBDC | Set HL to the graphic. (EBDC) | ||
CE89 | CALL $E84E | Draw the graphic. | ||
Has Dan got the plans?
|
||||
CE8C | LD A,($C87E) | Has Dan got the plans? | ||
CE8F | BIT 1,A | |||
CE91 | RET NZ | Return if he has. | ||
Dan hasn't got the plans, they need drawing.
|
||||
CE92 | LD DE,$0506 | Set DE to the position. | ||
CE95 | LD HL,$EB89 | Set HL to the graphic. (EB89) | ||
CE98 | CALL $E84E | Draw the graphic. | ||
CE9B | LD A,($C86C) | Is the number of lives greater than 1A? | ||
CE9E | CP $1A | |||
CEA0 | JP NC,$0000 | If so, reset - either a bug or someone's hacking the game. | ||
CEA3 | RET | Otherwise return. |
Prev: CE72 | Up: Map | Next: CEA4 |