| Ant Attack | Routines |
| Prev: 8600 | Up: Map | Next: 869F |
|
Each row is 16 cells along a diagonal from the start, then 16 more from the cell beside it; the next row starts a cell further back. The other three views' routines are the same with the signs turned.
|
||||
| GATHER_VIEW0 | 8681 | EX AF,AF' | First half-row... | |
| 8682 | PUSH DE | |||
| 8683 | LD B,$10 | |||
| GATHER_VIEW0_0 | 8685 | CALL READ_MAP_CELL | ||
| 8688 | INC E | |||
| 8689 | INC D | |||
| 868A | DJNZ GATHER_VIEW0_0 | |||
| 868C | POP DE | ...then the second, from the next cell over. | ||
| 868D | INC D | |||
| 868E | PUSH DE | |||
| 868F | LD B,$10 | |||
| GATHER_VIEW0_1 | 8691 | CALL READ_MAP_CELL | ||
| 8694 | INC E | |||
| 8695 | INC D | |||
| 8696 | DJNZ GATHER_VIEW0_1 | |||
| 8698 | POP DE | The next row starts a cell back. | ||
| 8699 | DEC E | |||
| 869A | EX AF,AF' | |||
| 869B | DEC A | |||
| 869C | JR NZ,GATHER_VIEW0 | |||
| 869E | RET | |||
| Prev: 8600 | Up: Map | Next: 869F |