Dynamite Dan | Routines |
Prev: CC89 | Up: Map | Next: CD5C |
B On exit, holds new flags. C On exit, holds new wait time before moving. D On exit, holds new room. E On exit, holds new y co-ordinate.
|
||||
CD24 | EXX | |||
CD25 | LD E,A | |||
CD26 | LD HL,$CD7E | |||
CD29 | JR $CD31 | |||
CD2B | LD A,E | |||
CD2C | EXX | |||
CD2D | LD E,A | |||
CD2E | LD HL,$CD84 | Point HL to the lift graphic. | ||
CD31 | LD D,$0F | |||
CD33 | LD C,$02 | Draw 2 rows. | ||
CD35 | CALL $E8D2 | Convert the co-ordinate to a screen address. | ||
CD38 | PUSH DE | Remember DE. | ||
CD39 | LD B,$03 | Draw 3 columns. | ||
CD3B | LD A,(HL) | Get the graphic data. | ||
CD3C | LD (DE),A | Put it on screen. | ||
CD3D | INC HL | Move to the next graphic data. | ||
CD3E | INC E | Move forward a column. | ||
CD3F | DJNZ $CD3B | Loop if there are more columns on this row to draw. | ||
CD41 | POP DE | Restore DE. | ||
CD42 | INC D | Move down a row. | ||
CD43 | DEC C | Loop back if there are more rows to draw. | ||
CD44 | JR NZ,$CD38 | |||
CD46 | EXX | |||
CD47 | LD A,C | |||
CD48 | AND A | |||
CD49 | RET NZ | |||
CD4A | BIT 1,B | |||
CD4C | RET NZ | |||
CD4D | BIT 1,E | |||
CD4F | RET NZ | |||
CD50 | LD A,E | |||
CD51 | RRA | |||
CD52 | AND $0F | |||
CD54 | ADD A,$03 | |||
CD56 | PUSH HL | |||
CD57 | CALL $DB01 | |||
CD5A | POP HL | |||
CD5B | RET |
Prev: CC89 | Up: Map | Next: CD5C |