![]() |
Routines |
| Prev: C2E8 | Up: Map | Next: C2FE |
|
Used by the routines at Action_ExamineItem, Handler_NotCarryingIt, Handler_FightOpponent, Handler_KillTheWarrior, Action_Open and Action_Close.
Step through a phrase until the object it names is reached.
|
||||
| Parser_SkipToken | C2EF | JR Parser_SkipToken_Next | Start at the first byte of the phrase. | |
| Parser_SkipToken_Loop | C2F1 | INC HL | Step to the next byte of the phrase. | |
| Parser_SkipToken_Next | C2F2 | LD A,(HL) | Jump back to Parser_SkipToken_Loop when the end of a phrase matches. | |
| C2F3 | CP $FE | |||
| C2F5 | JR Z,Parser_SkipToken_Loop | |||
| C2F7 | CALL IsObjectInCurrentRoom | Jump back to Parser_SkipToken_Loop unless the end of a phrase matches. | ||
| C2FA | JR NZ,Parser_SkipToken_Loop | |||
| C2FC | LD A,(HL) | Fetch the next phrase byte into A. | ||
| C2FD | RET | Return. | ||
| Prev: C2E8 | Up: Map | Next: C2FE |