home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_17_1987_Transactor_Publishing.d64
/
help!
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
3KB
|
60 lines
15 rem the transactor help utility
16 rem nick sullivan and chris zamara
17 rem october 1986
18 rem (c) 1986 the transactor
19 rem okay to copy, not to sell
20 :
21 rem do not alter the length of any
22 rem line after program is assembled
23 :
24 a=00000: rem 5 digit link base addr
25 sys 3554,a: clr
26 goto 340
27 :
50 data "[199]etting [211]tarted "
51 data "[208]rinting [217]our [212]ext "
52 data "[193]voyding [211]pelling [197]rrors "
53 data "[199]etting [198]inished "
54 data " "
55 data " [212]he first four data "
56 data "lines above are a sample "
57 data "menu that will be shown "
58 data "when help is invoked. "
59 data " [213]p to 20 menu items may"
60 data "be used. [198]or each one, "
61 data "there must be a matching "
62 data "file on disk, with a "
63 data "filename of the form: "
64 data " help-? "
65 data "where the '?' represents "
66 data "an alphabetic character. "
67 data " [212]he above menu items "
68 data "require filenames help-a "
69 data "through help-d. "
70 :
100 sl=25+1: rem 25 chars per menu item
110 s=peek(45)+256*peek(46)-20*sl-1
120 read a$
130 if left$(a$,1)=chr$(32) goto 200
140 for i=1 to sl-1
150 poke s+i,asc(mid$(a$,i))
160 next i
170 poke s+i,0
180 n=n+1: s=s+sl: if n<20 goto 120
190 :
200 a=122: gosub 330: z=a
210 a=123: gosub 330: z=z+256*a+11
220 :
230 poke z+0, n
240 poke z+1,09 :rem border
250 poke z+2,09 :rem background
260 poke z+3,00 :rem cursor
270 print "done!": goto 340
280 :
290 rem subroutine calculates addr of
300 rem chrget ptr at colon in line 330
310 rem (no spaces allowed in 330)
320 :
330 a=peek(a):return
340 end