| Dynamite Dan | Routines | 
| Prev: DC71 | Up: Map | Next: DCE8 | 
| 
Used by the routine at CBBD.
 
 | ||||||||
| DCC1 | LD A,(IX+$04) | Is there food in the room? | ||||||
| DCC4 | BIT 3,A | |||||||
| DCC6 | JR NZ,$DCCC | Jump forward if there is. | ||||||
| DCC8 | LD A,$FF | Set "no attribute" for food in this room. | ||||||
| DCCA | JR $DCE4 | |||||||
| 
This entry point is used by the routine at DCF6.
 | ||||||||
| DCCC | AND $07 | Get the bottom 3 bits, containing the food ID. | ||||||
| DCCE | PUSH AF | Remember this value in A. | ||||||
| DCCF | CALL $DCE8 | Convert the food ID to its graphic address. | ||||||
| DCD2 | LD E,(IX+$05) | Put the location in DE. | ||||||
| DCD5 | LD D,(IX+$06) | |||||||
| DCD8 | CALL $E84E | Draw the graphic. | ||||||
| DCDB | POP AF | Restore the food ID in A. | ||||||
| DCDC | LD C,A | Put the ID in BC. | ||||||
| DCDD | LD B,$00 | |||||||
| DCDF | LD HL,$65EA | Add the base address of the food attribute buffer (65EA) and store it in HL. | ||||||
| DCE2 | ADD HL,BC | |||||||
| DCE3 | LD A,(HL) | Put the attribute in A. | ||||||
| DCE4 | LD ($CFC9),A | Update the attribute marking food (CFC9) and return. | ||||||
| DCE7 | RET | |||||||
| Prev: DC71 | Up: Map | Next: DCE8 |