Prev: 50015 Up: Map Next: 50094
50047: Match Phrase Tokens
Input
HL A pointer to phrase token data
MatchPhraseTokens 50047 EX DE,HL Switch the phrase token pointer to DE.
50048 JR MatchPhraseTokens_0 Jump to MatchPhraseTokens_0.
MatchPhraseTokens_Loop 50050 INC DE Increment the phrase token pointer by one.
MatchPhraseTokens_0 50051 LD HL,48487 HL=UserInput_Token_2.
50054 JR MatchPhraseTokens_2 Jump to MatchPhraseTokens_2.
MatchPhraseTokens_1 50056 INC HL Increment HL by one.
50057 INC DE Increment DE by one.
MatchPhraseTokens_2 50058 LD A,(DE) A=*DE.
50059 CP (HL) Jump to MatchPhraseTokens_1 if A is equal to *HL.
50060 JR Z,MatchPhraseTokens_1
50062 CP 254 Jump to MatchPhraseTokens_3 if A is not equal to 254.
50064 JR NZ,MatchPhraseTokens_3
50066 LD A,(HL) Compare *HL with 255.
50067 CP 255
50069 RET Return.
MatchPhraseTokens_3 50070 CP 253 Jump to MatchPhraseTokens_4 if A is not equal to 253.
50072 JR NZ,MatchPhraseTokens_4
50074 LD A,(HL) Jump to MatchPhraseTokens_Loop if *HL is not equal to 255.
50075 CP 255
50077 JR NZ,MatchPhraseTokens_Loop
50079 RET Return.
MatchPhraseTokens_4 50080 INC DE Increment DE by one.
50081 LD A,(DE) A=*DE.
50082 CP 254 Jump to MatchPhraseTokens_Return if the terminator has been reached (254).
50084 JR Z,MatchPhraseTokens_Return
50086 CP 253 Jump to MatchPhraseTokens_4 if A is not equal to 253.
50088 JR NZ,MatchPhraseTokens_4
50090 JR MatchPhraseTokens_Loop Jump to MatchPhraseTokens_Loop.
MatchPhraseTokens_Return 50092 OR A Set the bits from A.
50093 RET Return.
Prev: 50015 Up: Map Next: 50094