![]() |
Routines |
| Prev: C7A9 | Up: Map | Next: C7BC |
|
Used by the routine at DrawShipTop.
Tests the flag at C7BF, which has bit 7 set when the object is facing left. If it is not, L is increased, B is made F9 and the zero flag is set.
|
||||||||||||||||
| TestDirection | C7B1 | LD A,($C7BF) | The ship top faces left. | |||||||||||||
| C7B4 | BIT 7,A | Return if bit 7 of A is set. | ||||||||||||||
| C7B6 | RET NZ | |||||||||||||||
| C7B7 | LD B,$F9 | B=F9. | ||||||||||||||
| C7B9 | INC L | Advance L. | ||||||||||||||
| C7BA | XOR A | Clear A. | ||||||||||||||
| C7BB | RET | Return. | ||||||||||||||
| Prev: C7A9 | Up: Map | Next: C7BC |