![]() |
Routines |
| Prev: 8347 | Up: Map | Next: 83A1 |
|
Used by the routine at landscape_end_pieces.
Part of landscape_end_pieces: one wider when the last piece (piece_extra_b) is $93 and E is 0, or $92 and E is not 0.
|
||||||||||
| last_piece_width | 838B | LD A,(piece_extra_b) | Only pieces $92 and $93 | |||||||
| 838E | CP $93 | |||||||||
| 8390 | JR Z,last_piece_width_1 | |||||||||
| 8392 | CP $92 | |||||||||
| 8394 | JR Z,last_piece_width_0 | |||||||||
| 8396 | RET | |||||||||
| last_piece_width_0 | 8397 | LD A,E | $92: one wider unless E=0 | |||||||
| 8398 | AND A | |||||||||
| 8399 | RET Z | |||||||||
| 839A | INC C | |||||||||
| 839B | RET | |||||||||
| last_piece_width_1 | 839C | LD A,E | $93: one wider when E=0 | |||||||
| 839D | AND A | |||||||||
| 839E | RET NZ | |||||||||
| 839F | INC C | |||||||||
| 83A0 | RET | |||||||||
| Prev: 8347 | Up: Map | Next: 83A1 |