Prev: A684 Up: Map Next: A6D1
A6BB: Skip Text Token Based On Type
Used by the routines at ContinueAtTheNextToken and PrintRandomAlternative.
Skips a text token whose record flag says this token type is not printed.
Input
IX Pointer to text token
Output
IX Updated pointer (skips token data)
SkipTextTokenBasedOnType A6BB LD A,(IX+$00) Jump ahead to SkipTextTokenBasedOnType_SkipPair if bit 7 of the record's flag byte is present.
A6BE BIT 7,A
A6C0 JR NZ,SkipTextTokenBasedOnType_SkipPair
A6C2 CP $02 Go to SkipTextTokenBasedOnType_Next if it is 02.
A6C4 JR Z,SkipTextTokenBasedOnType_Next
A6C6 CP $0B Go to SkipTextTokenBasedOnType_0 if it is not 0B.
A6C8 JR NZ,SkipTextTokenBasedOnType_0
SkipTextTokenBasedOnType_Next A6CA INC IX Step to the next byte of this text token.
SkipTextTokenBasedOnType_SkipPair A6CC INC IX Step to the next byte of this text token.
SkipTextTokenBasedOnType_0 A6CE INC IX Step to the next byte of this text token.
A6D0 RET Return.
Prev: A684 Up: Map Next: A6D1