![]() |
Routines |
| Prev: C36D | Up: Map | Next: C38F |
|
Used by the routines at StopObjectAtFloor, BlockMovementInX, BlockMovementInY, BlockMovementInZ, KeepObjectInRoomInX and KeepObjectInRoomInY.
Takes one off the size of a speed.
|
||||||||||||||
| BringSpeedCloserToZero | C386 | AND A | Return if the speed is zero. | |||||||||||
| C387 | RET Z | |||||||||||||
| C388 | JP P,BringSpeedCloserToZero_Step | Jump to BringSpeedCloserToZero_Step if the sign flag is clear. | ||||||||||||
| C38B | INC A | Add two to the negative speed. | ||||||||||||
| C38C | INC A | |||||||||||||
| BringSpeedCloserToZero_Step | C38D | DEC A | Decrement A. | |||||||||||
| C38E | RET | Return. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: C36D | Up: Map | Next: C38F |