| Ant Attack | Routines |
| Prev: 839B | Up: Map | Next: 83C8 |
|
Used by the routine at DRAW_VIEW.
Jumps to one of four routines, 32 bytes apart from GATHER_VIEW0, which read the map along diagonals in the order that view needs: 21 rows of two 16-cell half-rows, from VIEW_ORIGIN.
|
||||
| GATHER_VIEW | 83B0 | LD A,(VIEW) | HL = GATHER_VIEW0 + 32 x the view. | |
| 83B3 | AND $03 | |||
| 83B5 | RRCA | |||
| 83B6 | RRCA | |||
| 83B7 | RRCA | |||
| 83B8 | OR $81 | |||
| 83BA | LD L,A | |||
| 83BB | LD H,$86 | |||
| 83BD | LD DE,(VIEW_ORIGIN) | |||
| 83C1 | LD IX,VIEW_CELLS | |||
| 83C5 | LD A,$15 | 21 rows. | ||
| 83C7 | JP (HL) | |||
| Prev: 839B | Up: Map | Next: 83C8 |