![]() |
Routines |
| Prev: 37031 | Up: Map | Next: 37100 |
|
Used by the routines at MoveObjectBackAndForth and StartTerrainCheck.
Negates both speeds of an object.
|
||||||||
| ReverseObjectSpeed | 37069 | LD H,(IX+7) | Fetch the horizontal speed into HL. | |||||
| 37072 | LD L,(IX+8) | |||||||
| 37075 | CALL NegateNumber | Negate it. | ||||||
| 37078 | LD (IX+7),H | Store the new horizontal speed. | ||||||
| 37081 | LD (IX+8),L | |||||||
| 37084 | LD H,(IX+9) | Fetch the vertical speed into HL. | ||||||
| 37087 | LD L,(IX+10) | |||||||
| 37090 | CALL NegateNumber | Negate it. | ||||||
| 37093 | LD (IX+9),H | Store the new vertical speed. | ||||||
| 37096 | LD (IX+10),L | |||||||
| 37099 | RET | Return. | ||||||
| Prev: 37031 | Up: Map | Next: 37100 |