| ← 9BEE | Map | 9CA6 → |
9C99: Drag the bat's extension up
|
Raises the bat extension in lockstep with the bat. A no-op while no extension is attached.
The extension's downward drag is its counterpart.
|
|||||||
|
|||||||
| drag_attached_up | 9C99 | LD A,(expand_active) | No extension attached? Nothing to drag. | ||||
| 9C9C | OR A | ||||||
| 9C9D | RET Z | ||||||
| 9C9E | LD A,(bat_ext_y) | Move the extension up by the step: subtract B from its Y. | |||||
| 9CA1 | SUB B | ||||||
| 9CA2 | LD (bat_ext_y),A | ||||||
| 9CA5 | RET | ||||||
| ← 9BEE | Map | 9CA6 → |
