| Dynamite Dan | Routines |
| Prev: C8F5 | Up: Map | Next: C925 |
|
Used by the routine at CBBD.
|
||||
| C8FF | LD DE,($C872) | Put Dan's co-ordinates (C872) in DE. | ||
| C903 | LD HL,$62D6 | Point HL to Dan's current graphic. | ||
| C906 | LD A,$0E | 00E entries to check. | ||
| C908 | EX AF,AF' | Remember A. | ||
| C909 | PUSH DE | Remember DE. | ||
| C90A | CALL $E8D2 | Convert the co-ordinates to a screen address. | ||
| C90D | LD C,$02 | 2 rows to draw. | ||
| C90F | PUSH DE | Remember DE. | ||
| C910 | LD B,$03 | 3 columns to draw. | ||
| C912 | LD A,(DE) | Get the screen data. | ||
| C913 | LD (HL),A | Put it in the graphic buffer. | ||
| C914 | INC HL | Move to the next graphic data. | ||
| C915 | INC E | Move to the next column. | ||
| C916 | DJNZ $C912 | Loop until all the columns in this row are drawn. | ||
| C918 | POP DE | Restore DE. | ||
| C919 | INC D | Move to the next row. | ||
| C91A | DEC C | Loop until all the rows are drawn. | ||
| C91B | JR NZ,$C90F | |||
| C91D | POP DE | Restore DE. | ||
| C91E | INC E | Move to the next set of data. | ||
| C91F | INC E | |||
| C920 | EX AF,AF' | Restore A. | ||
| C921 | DEC A | Loop until all entries are done. | ||
| C922 | JR NZ,$C908 | |||
| C924 | RET | Return. | ||
| Prev: C8F5 | Up: Map | Next: C925 |