home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_11_1986_Transactor_Publishing.d64
/
select
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
61 lines
0 rem select (wayne happ, 1985) :
1 :
2 rem 4 statements, 0 functions
3 :
4 rem keyword characters: 28
5 :
6 rem keyword routine line ser #
7 rem s/select sel 10388 145
8 rem s/when whn 10412 146
9 rem s/otherwise oth 10448 147
10 rem s/endselect wn3 10438 148
11 :
12 rem ================================
13 :
143 .asc "selec[212]whe[206]"
144 .asc "otherwis[197]endselec[212]"
1143 .word sel-1,whn-1
1144 .word oth-1,wn3-1
10388 sel bne sel1
10390 lda #0
10392 sel1 sta sflg2
10394 beq sel2
10396 jsr $ad8a
10398 ldx #<seltst
10400 ldy #>seltst
10402 jsr $bbd4
10404 sel2 lda #1
10406 sta sflg1
10408 rts
10410 ;
10412 whn beq oth1
10414 jsr $ad8a
10416 lda sflg1
10418 beq wn1
10420 lda sflg2
10422 bne wn2
10424 lda $61
10426 bne wn3
10428 wn1 jmp $a93b
10430 wn2 lda #<seltst
10432 ldy #>seltst
10434 jsr $bc5b
10436 bne wn1
10438 wn3 lda #0
10440 sta sflg1
10442 jsr $79
10444 jmp $a940
10446 ;
10448 oth beq oth1
10450 lda sflg1
10452 bne wn3
10454 beq wn1
10456 oth1 jmp $af08
10458 ;
10460 sflg1 .byte 0
10462 ;
10464 sflg2 .byte 0
10466 ;
10468 seltst *=*+5
10470 ;