Routines |
Prev: ED12 | Up: Map | Next: ED2A |
Used by the routine at F54F.
|
||||
ED13 | LD A,$02 | Moving objects decrease endurance by 2 here. | ||
ED15 | LD ($F26E),A | |||
ED18 | LD A,($ED12) | Get the object ID to use for the gas. (ED12) | ||
ED1B | CALL $ED8A | Set up moving objects. | ||
ED1E | ADD A,$02 | Move to the next object ID (a masked object is double size). | ||
ED20 | CP $82 | If the ID is greater than 80 set it back to 7C. | ||
ED22 | JR NZ,$ED26 | |||
ED24 | LD A,$7C | |||
ED26 | LD ($ED12),A | Store the new object ID and return. | ||
ED29 | RET |
Prev: ED12 | Up: Map | Next: ED2A |