![]() |
Routines |
| Prev: 9CE8 | Up: Map | Next: 9D00 |
|
Used by the routines at Action_AddTheObjectMass and Action_Give.
Returns in A the total mass of the objects inside object A, including what they hold, or FF on overflow.
|
||||
| Condition_TotalTheMassInside | 9CED | PUSH BC | Set B to zero to add masses. | |
| 9CEE | LD B,$00 | |||
|
This entry point is used by the routine at Condition_TotalTheVolumeInside.
|
||||
| Condition_TotalTheMassInside_StartTheTotal | 9CF0 | PUSH IX | Start the total at zero. | |
| 9CF2 | PUSH IY | |||
| 9CF4 | LD C,$00 | |||
| 9CF6 | CALL Condition_AddUpTheObjectsInside | Call Condition_AddUpTheObjectsInside to add up the objects inside. | ||
| 9CF9 | LD A,C | Copy the total into A. | ||
| 9CFA | POP IY | Restore IY, IX and BC from the stack. | ||
| 9CFC | POP IX | |||
| 9CFE | POP BC | |||
| 9CFF | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 9CE8 | Up: Map | Next: 9D00 |