![]() |
Routines |
| Prev: 43541 | Up: Map | Next: 43575 |
|
Used by the routines at BounceHorizontally and BounceVertically.
Used to make the ship rebound. The bytes of the speed are swapped into HL, the speed is negated and halved, a speed that is close to zero is set to zero, and the bytes are swapped back.
|
||||||||||||
| ReverseAndHalveSpeed | 43559 | LD A,H | A=H. | |||||||||
| 43560 | LD H,L | H=L. | ||||||||||
| 43561 | LD L,A | L=A. | ||||||||||
| 43562 | CALL NegateNumber | Call NegateNumber. | ||||||||||
| 43565 | CALL HalveNumber | Call HalveNumber. | ||||||||||
| 43568 | CALL ZeroSmallSpeed | Call ZeroSmallSpeed. | ||||||||||
| 43571 | LD A,H | A=H. | ||||||||||
| 43572 | LD H,L | H=L. | ||||||||||
| 43573 | LD L,A | L=A. | ||||||||||
| 43574 | RET | Return. | ||||||||||
| Prev: 43541 | Up: Map | Next: 43575 |