     $C268/49768:   Search character in input buffer

    Jump from $C1D8, $C1EB, $C202, $C236, $CC21, $CC75, $D845, $E7A5:

    C268: 8D 75 02  STA $0275       ; save character

    Jump from $C285, $C29C:

    C26B: CC 74 02  CPY $0274       ; already done?
    C26E: B0 2E     BCS $C29E       ; yes
    C270: B1 A3     LDA ($A3),Y     ; get char from buffer
    C272: C8        INY
    C273: CD 75 02  CMP $0275       ; compared with char
    C276: F0 28     BEQ $C2A0       ; found
    C278: C9 2A     CMP #$2A        ; '*'
    C27A: F0 04     BEQ $C280
    C27C: C9 3F     CMP #$3F        ; '?'
    C27E: D0 03     BNE $C283

    Jump from $C27A:

    C280: EE 8A 02  INC $028A       ; set wildcard flag

    Jump from $C27E:

    C283: C9 2C     CMP #$2C        ; ','
    C285: D0 E4     BNE $C26B
    C287: 98        TYA
    C288: 9D 7B 02  STA $027B,X     ; note comma position
    C28B: AD 8A 02  LDA $028A       ; wildcard flag
    C28E: 29 7F     AND #$7F
    C290: F0 07     BEQ $C299       ; no wildcard
    C292: A9 80     LDA #$80
    C294: 95 E7     STA $E7,X       ; note flag
    C296: 8D 8A 02  STA $028A       ; and save as wildcard flag

    Jump from $C290:

    C299: E8        INX             ; increment comma counter
    C29A: E0 04     CPX #$04        ; 4 commas already?
    C29C: 90 CD     BCC $C26B       ; no, continue

    Jump from $C26E:

    C29E: A0 00     LDY #$00

    Jump from $C276:

    C2A0: AD 74 02  LDA $0274       ; set flag for line end
    C2A3: 9D 7B 02  STA $027B,X
    C2A6: AD 8A 02  LDA $028A       ; wildcard flag
    C2A9: 29 7F     AND #$7F
    C2AB: F0 04     BEQ $C2B1       ; no wildcard
    C2AD: A9 80     LDA #$80
    C2AF: 95 E7     STA $E7,X       ; set flag

    Jump from $C2AB:

    C2B1: 98        TYA
    C2B2: 60        RTS

        Previous Page / Next Page