![]() |
Routines |
| Prev: CD8B | Up: Map | Next: CDB8 |
| CD95 | LD A,($A24F) | Add speed to x-position of Rex | ||
| CD98 | LD HL,$A22A | |||
| CD9B | ADD A,(HL) | |||
| CD9C | CP $F0 | If x-position of Rex is greater than 240 then check for next room on the right | ||
| CD9E | JP NC,$CE41 | |||
| CDA1 | CP $03 | If x-position of Rex is less than 3 then check for next room on the left | ||
| CDA3 | JP C,$CE30 | |||
| CDA6 | LD ($A24F),A | Set the new x-position | ||
| CDA9 | LD A,($A256) | Return if Rex is jumping | ||
| CDAC | OR A | |||
| CDAD | RET NZ | |||
| CDAE | LD A,($A255) | Return if Rex is falling | ||
| CDB1 | OR A | |||
| CDB2 | RET NZ | |||
| CDB3 | XOR A | Set speed to 0 | ||
| CDB4 | LD ($A22A),A | |||
| CDB7 | RET | |||
| Prev: CD8B | Up: Map | Next: CDB8 |