| Dynamite Dan | Routines |
| Prev: DB17 | Up: Map | Next: DB52 |
|
||||||||
| DB38 | PUSH HL | Remember HL. | ||||||
| DB39 | LD HL,($C872) | Get Dan's co-ordinates (C872, C873) | ||||||
| DB3C | LD A,H | Put the Y co-ordinate in A. | ||||||
| DB3D | SUB D | Is this close enough to the Y co-ordinate of the item? | ||||||
| DB3E | ADD A,$03 | |||||||
| DB40 | CP $07 | |||||||
| DB42 | JR NC,$DB50 | Jump forward if it isn't. | ||||||
| DB44 | LD A,L | Put the X co-ordinate in A. | ||||||
| DB45 | SRL A | Set the carry flag if this close enough to the X co-ordinate of the item. | ||||||
| DB47 | SRL A | |||||||
| DB49 | SRL A | |||||||
| DB4B | SUB E | |||||||
| DB4C | ADD A,$03 | |||||||
| DB4E | CP $07 | |||||||
| DB50 | POP HL | Restore HL and return. | ||||||
| DB51 | RET | |||||||
| Prev: DB17 | Up: Map | Next: DB52 |