![]() |
Routines |
| Prev: D682 | Up: Map | Next: D6DC |
|
Used by the routine at TestGroupObjects.
Compares a patched position with a patched edge that has been moved back by four. The carry is set when the position is below that edge. TestGroupObjects patches both operands before the call.
|
||||
|
Both operands are patched before the call. The edge is moved back by four and the position is compared with it.
|
||||
| TestEdgeOverlap | D6CE | LD DE,$0000 | Move the patched edge back by four. | |
| D6D1 | DEC DE | |||
| D6D2 | DEC E | |||
| D6D3 | DEC E | |||
| D6D4 | DEC E | |||
| D6D5 | LD HL,$0000 | Subtract that edge from the patched position. | ||
| D6D8 | AND A | |||
| D6D9 | SBC HL,DE | |||
| D6DB | RET C | Return when the position is below the edge. | ||
|
Continue on to TestBlockOverlap.
|
||||
| Prev: D682 | Up: Map | Next: D6DC |