Routines |
Prev: D013 | Up: Map | Next: D040 |
D01D | LD A,($A0B6) | Add speed to x-position of Rex | ||
D020 | LD HL,$A091 | |||
D023 | ADD A,(HL) | |||
D024 | CP $F0 | If x-position of Rex is greater than 240 then check for next room on the right | ||
D026 | JP NC,$D0B1 | |||
D029 | CP $03 | If x-position of Rex is less than 3 then check for next room on the left | ||
D02B | JP C,$D0A0 | |||
D02E | LD ($A0B6),A | Set the new x-position | ||
D031 | LD A,($A0BD) | Return if Rex is jumping | ||
D034 | OR A | |||
D035 | RET NZ | |||
D036 | LD A,($A0BC) | Return if Rex is falling | ||
D039 | OR A | |||
D03A | RET NZ | |||
D03B | XOR A | Set speed to 0 | ||
D03C | LD ($A091),A | |||
D03F | RET |
Prev: D013 | Up: Map | Next: D040 |