home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_08_1985_Transactor_Publishing.d64
/
instring
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
108 lines
0 rem instring (c. kluepfel, apr/85) :
1 :
2 rem 0 statements, 1 function
3 :
4 rem keyword characters: 6
5 :
6 rem keyword routine line ser #
7 rem f/instr( instr 6210 080
8 :
9 rem ================================
10 :
613 .asc "instr": .byte $a8
1613 .word instr-1
6210 instr lda #2
6212 jsr $a3fb
6214 jsr $ad9e
6216 jsr $b6a3
6218 sta t3
6220 pha
6222 txa
6224 pha
6226 tya
6228 pha
6230 lda t3
6232 jsr $b47d
6234 jsr $aefd
6236 jsr $ad9e
6238 jsr $b6a3
6240 stx $22
6242 sty $23
6244 sta t3
6246 pla
6248 sta $25
6250 pla
6252 sta $24
6254 pla
6256 sta t2
6258 sta t4
6260 dec t4
6262 ldx #$af
6264 jsr $79
6266 cmp #")"
6268 beq ins1
6270 jsr $aefd
6272 tax
6274 jsr $73
6276 ins1 jsr $aef7
6278 sec
6280 lda t2
6282 beq ins6
6284 sbc t3
6286 ror t6
6288 tay
6290 lda t3
6292 beq ins6
6294 lda #0
6296 sta insctr
6298 cpx #$af
6300 beq ins2
6302 cpx #$b0
6304 beq ins3
6306 cpx #$a8
6308 beq ins3
6310 jmp $af08
6312 ins2 bit t6
6314 bpl ins6
6316 sty t4
6318 ins3 ldy #0
6320 ins4 lda ($24),y
6322 cpx #$af
6324 bne ins9
6326 cmp ($22),y
6328 bne ins7
6330 iny
6332 cpy t3
6334 bne ins4
6336 ins5 ldy insctr
6338 .byte $2c
6340 ins6 ldy #$ff
6342 iny
6344 jmp $b3a2
6346 ins7 inc insctr
6348 lda t4
6350 cmp insctr
6352 bcc ins6
6354 inc $24
6356 bne ins8
6358 inc $25
6360 ins8 bne ins3
6362 ins9 ldy t3
6364 cpx #$a8
6366 beq ins11
6368 ins10 dey
6370 cpy #$ff
6372 beq ins7
6374 cmp ($22),y
6376 bne ins10
6378 beq ins5
6380 ins11 dey
6382 cpy #$ff
6384 beq ins5
6386 cmp ($22),y
6388 bne ins11
6390 beq ins7
6392 ;
6394 insctr .byte 0
6396 ;