![]() |
Routines |
| Prev: EB55 | Up: Map | Next: EB95 |
|
-
|
||||||||
| EB79 | LD A,(HL) | Put the graphic ID in A. | ||||||
| EB7A | INC HL | Put the x co-ordinate in E. | ||||||
| EB7B | LD E,(HL) | |||||||
| EB7C | INC HL | Put the y co-ordinate in D. | ||||||
| EB7D | LD D,(HL) | |||||||
| EB7E | INC HL | Point to the next action in the buffer. | ||||||
| EB7F | PUSH HL | Store HL. | ||||||
| EB80 | PUSH DE | Store the position that is in DE. | ||||||
| EB81 | ADD A,A | Double the graphic ID to get a word offset. | ||||||
| EB82 | LD E,A | Put this in DE. | ||||||
| EB83 | LD D,$00 | |||||||
| EB85 | LD HL,$BD86 | Add the offset for the basic room block components. (BD86) | ||||||
| EB88 | ADD HL,DE | |||||||
| EB89 | LD E,(HL) | Put the actual address in DE. | ||||||
| EB8A | INC HL | |||||||
| EB8B | LD D,(HL) | |||||||
| EB8C | EX DE,HL | Swap DE and HL, so HL has the graphic address. | ||||||
| EB8D | POP DE | Restore DE with the position. | ||||||
| EB8E | CALL $B82B | Draw the graphic. | ||||||
| EB91 | POP HL | Restore HL. | ||||||
| EB92 | JP $EAEB | Jump to handle any other actions. | ||||||
| Prev: EB55 | Up: Map | Next: EB95 |