![]() |
Routines |
| Prev: F880 | Up: Map | Next: F8AA |
|
Used by the routine at shift_slope_piece.
For shift_slope_piece: a slope's header is three bytes -- the number of rows in each variant, halved and rounded up (to row_count, and row_count_spare to reload it), the number of pairs of rows (row pairs to scratch_count and ground_cell), and the width in bytes (C). A flat piece's header is the last two of these (entered at its fourth instruction by shift_flat_piece). D is set to $FA, the first high page of the shift tables.
|
||||||||||||||||
| read_piece_header | F895 | LD A,(HL) | Rows in each variant, halved | |||||||||||||
| F896 | LD (row_count),A | |||||||||||||||
| F899 | LD (row_count_spare),A | |||||||||||||||
| F89C | INC HL | |||||||||||||||
|
This entry point is used by the routine at shift_flat_piece.
|
||||||||||||||||
| read_piece_header_0 | F89D | LD A,(HL) | Pairs of rows | |||||||||||||
| F89E | LD (scratch_count),A | |||||||||||||||
| F8A1 | LD (ground_cell),A | |||||||||||||||
| F8A4 | INC HL | |||||||||||||||
| F8A5 | LD D,$FA | The shift tables' first high page | ||||||||||||||
| F8A7 | LD C,(HL) | The width in bytes | ||||||||||||||
| F8A8 | INC HL | |||||||||||||||
| F8A9 | RET | |||||||||||||||
| Prev: F880 | Up: Map | Next: F8AA |