![]() |
Routines |
| Prev: BE10 | Up: Map | Next: BE43 |
|
Used by the routine at SelectNextTile.
Sets the tile to look at next to the one in the column to the right of the current one, at the left of it, for SelectNextTile. The column goes round to zero after 5F.
|
||||
| SelectNextColumn | BE26 | LD A,($5C2A) | The object reaches into the next column. | |
| BE29 | LD ($5C2C),A | Update the segment screen column. | ||
| BE2C | LD HL,($5C2E) | Fetch the word at PieceColumn into HL. | ||
| BE2F | INC H | Advance H. | ||
| BE30 | LD A,H | A=H. | ||
| BE31 | CP $60 | Jump to SelectNextColumn_Store if A is not 60. | ||
| BE33 | JR NZ,SelectNextColumn_Store | |||
| BE35 | LD H,$00 | Clear H. | ||
| SelectNextColumn_Store | BE37 | LD L,$08 | L=08. | |
| BE39 | LD ($BF7F),HL | Update the tile position. | ||
| BE3C | LD A,($CE44) | The segment row. | ||
| BE3F | LD ($5C2D),A | Update the segment screen row. | ||
| BE42 | RET | Return. | ||
| Prev: BE10 | Up: Map | Next: BE43 |