home *** CD-ROM | disk | FTP | other *** search
- 10 a$="":dima$(790):gosub100:hd$="":print"[147][159]"
- 20 rv=0:bx=0:ex=40:by=0:bd=19:bc=7:gosub130:gosub450:poke53281,0:poke53280,0
- 30 bx=1:ex=39:by=21:bd=1:bc=3:gosub130
- 40 ln$=" ":x$=chr$(13):cu=3:n=197
- 50 ms$="loading routines...":gosub190
- 60 sys57812"budget manual.o",8,0:poke780,0:poke781,60:poke782,3:sys65493
- 70 fi$="t.invoice docs"
- 80 goto210
- 90 rem*******generate variables**********
- 100 ba$="[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 110 a$="[221][157][221][157][221][157][221][157][221][157][221][157][221][157]":fori=1to6:bd$=bd$+a$:next:return
- 120 rem*********print box*************
- 130 oc=peek(646):poke646,bc:rv$="":ifrvthenrv$=""
- 140 poke211,bx:poke214,by:sys58732:printrv$"[176]"left$(ba$,ex-bx-2)"[174][157]";
- 150 printrv$left$(bd$,bd*3):printrv$spc(bx)"[145][173]"left$(ba$,ex-bx-2)"[189]"
- 160 poke211,bx:poke214,by+1:sys58732:printrv$left$(bd$,bd*3)"":poke646,oc
- 170 rv=0:return
- 180 rem****print message****
- 190 gosub200:print"[158]"left$(hd$,23)spc(20-len(ms$)/2)ms$"[159]":return
- 200 printleft$(hd$,23)""left$(ln$,36):return
- 210 h=-1:ms$="[204][207][193][196][201][206][199] [212][197][216][212]...":gosub190:l=1:open2,8,2,fi$+",p,r":get#2,a$,a$
- 220 iflthensys828,2,40:h=h+1:i=st:ifa$=""thena$=" "
- 230 a$(h)=a$:ifh=19thengosub360
- 240 a$(h)=a$:ifh=39thenms$="[217]ou can page now. (still loading)":gosub190
- 250 ifpeek(n)=64andst=0then220
- 260 ifpeek(n)=7thenifpeek(653)=0thengosub470
- 270 ifpeek(n)=41thenifl=0thengosub530
- 280 ifpeek(n)=20thengosub790:gosub380
- 290 ifpeek(n)=62thengosub650
- 300 ifpeek(n)=51thenpa=0:gosub370
- 310 ifpeek(n)=12thenifpeek(653)=4thenpa=19*int(h/19):gosub500
- 320 ifpeek(n)=7thenifpeek(653)=1thengosub500
- 330 iflthenifst=0thengoto220
- 340 iflthenclose2:gosub720:gosub700:l=0
- 350 goto260
- 360 rem**display text***
- 370 ford=0to10:poke214,d:print:print""ln$:poke214,18-d:print:print""ln$:next
- 380 poke646,cu:poke214,9:print:print""a$(10+pa):ford=1to9:poke214,9-d:print
- 390 print""a$(10-d+pa):poke214,9+d:print:print""a$(10+d+pa):next
- 400 printhd$ln$hd$spc(14+l*3)"[155][208]age[158]"int(1+pa/19);
- 410 ifl=0thenprint"[155]of[158]"lp"[159]"
- 420 iflthenprint"[159]"
- 430 return
- 440 remclear line links
- 450 fori=217to242:pokei,peek(i)or128:next:return
- 460 rem page
- 470 ifh<pa+38theniflthenreturn
- 475 ifint(1+pa/19)=lpthenreturn
- 480 ifh<pa+19thenreturn
- 490 pa=pa+19:gosub360:return
- 500 ifpa-19<0thenreturn
- 510 pa=pa-19:gosub360:return
- 520 rem***print***
- 530 close15:close4:open15,4,8:close15:ifstthenpoke53281,1:poke53281,0:return
- 540 ms$="[211]ingle sheet or [212]ractor? ([211]/[212]/^)":gosub190
- 550 geta$:ifa$<>"s"anda$<>"t"anda$<>"^"then550
- 560 ifa$="^"thengosub700:return
- 570 t=1:ifa$="s"thent=0
- 580 ms$="[211]et top of form/[159][210]eturn/[158]^":gosub190:poke198,0:wait198,1:geta$
- 584 ifa$="^"then560
- 585 gosub640
- 586 forii=1984to2023:pokeii,32:next
- 590 open4,4,7:ii=0:print#4,x$x$x$x$:fori=1toh
- 600 print#4,a$(i)spc(40-len(a$(i)))a$(i+55):ii=ii+1:ifii<55then630
- 610 ii=0:print#4,x$x$x$x$x$x$x$x$x$x$:i=i+55:iftthen630
- 620 ms$="[206]ext sheet/[159][210][197][212][213][210][206]/[158]^":gosub190:poke198,0:wait198,1:geta$
- 625 ifa$="^"theni=1000:next:close4:goto560
- 630 gosub640:next:gosub400:gosub700:return
- 640 ms$="[208]rinting...":gosub190:return
- 650 ms$="[209]uit? [193]re you sure? ([217]/[206])":gosub190:poke198,0
- 660 geta$:ifa$<>"y"anda$<>"n"then660
- 670 ifa$<>"y"thengosub200:gosub700:return
- 680 goto740
- 690 rem*** menu ****
- 700 printleft$(hd$,23)""left$(ln$,36)"[145]"
- 710 print"[158][195][210][211][210]-[213][208]/[196][206][146][159] to page [158][209][146][159] [209]uit [158][208][146][159] [208]rint":return
- 720 lp=h/19:iflp>int(lp)thenlp=int(lp)+1:return
- 730 return
- 740 open15,8,15,"r0:invoice menu=invoice menu":input#15,er:close15
- 750 if er<>63 then print"[147]":end
- 760 a$="invoice menu":q$=chr$(34):print"[147]"
- 770 print"[144]load"q$a$q$",8"
- 780 print"run":poke631,13:poke632,13:poke198,2:end
- 790 cu=cu+1:ifcu=16thencu=1
- 800 poke646,cu:return
-