home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 72
/
072.d81
/
tsg
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
74 lines
100 poke54,31:poke56,31:poke644,31:clr
110 sys57812"tsg.o",8,0:poke780,0:poke781,0:poke782,32:sys65493
120 poke53281,0:poke53280,0:print"[147]":gosub520
130 print" [204]oad a mnemonic overlay file? ([158][217]/[158][206])":poke198,0
140 geta$:ifa$=""then140
150 ifa$="n"then330
160 print" [195]hoose an overlay... ":poke198,0
170 print" [158]1.[159] [211]tandard opcodes"
180 print" [158]2.[159] [213]ndocumented opcodes set #1"
190 print" [158]3.[159] [213]ndocumented opcodes set #2"
200 print" [158]4.[159] [210]6511 opcodes"
210 print" [158]5.[159] [210]65[195]02 opcodes"
220 geta$:ifa$=""then220
230 ifa$<"1"ora$>"5"then220
240 onval(a$)goto250,260,270,280,290
250 o$="standard":goto300
260 o$="i-comp":goto300
270 o$="i-tran":goto300
280 o$="r6500/":goto300
290 o$="r65cxxx"
300 printleft$("",4+2*val(a$))" "a$". "
310 sys57812o$,8,0:poke780,0:poke781,3:poke782,32:sys65493
320 :
330 gosub810:ee=1:ec=0:print"[158][198]ile [212]o [196]isassemble ";:gosub610:in$=a$
340 print"[153] [*[159]=[204]oad [193]ddress[153]]"
350 print"[145][145][158][211]tarting [193]ddress ([210]eal) ? ";:ee=0:gosub620:sa$=a$
360 if sa$="*" and in$<>"" then390
370 print"[158][211]topping [193]ddress ([210]eal) ? ";:gosub620:ea$=a$
380 i$=sa$:print"[158][205]emory [211]tarting [193]ddress ? ";:gosub620:ma$=a$
390 ee=1:print"[158][196]efinition [198]ile.... ";:gosub610:df$=a$
400 print"[158][211]ymbol [198]ile........ ";:gosub610:sy$=a$
410 ec=1:print"[158][207]ptions............ ";:gosub610:op$=a$
420 print"[147]":sys8192:poke53280,0
430 print" [153]************** [198][201][206][201][211][200][197][196] [153]**************"
440 print" [159][199]enerate another source file? ([217][159]/[206][159])";
450 geta$:ifa$=""then450
460 ifa$="y"then120
470 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
480 ifer<>63thenprint"[147]":end
490 a$="hello connect":q$=chr$(34)
500 print"[147][144]load"q$a$q$",8"
510 print"run":poke631,13:poke632,13:poke198,2:end
520 print" [155][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][152]"
530 print" [212]he [211]ource [199]enerator "
540 print" [194]y [212]homas [195]zarnecki "
550 print" [193]ll [210]ights [210]eserved "
560 print" [208]ublished on [204][207][193][196][211][212][193][210] #72 "
570 print" Subscriptions 1-800-831-2694 "
580 print" [151][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185]"
590 return
600 :
610 ml=16:h=0:goto630
620 ml=4:h=1
630 a$="":poke198,0:k=0
640 print"[159]"mid$("[164][175][185][162][162][185][175][164]",k+1,1)"[157]";:k=(k+1)and7:getd$:ifd$<>""then670
650 fordc=1to10:nextdc
660 ifd$=""then640
670 iflen(a$)=mlthen760
680 ifhthen740
690 ifd$=" "ord$="."then800
700 ifd$>"/"andd$<":"then800
710 ifd$>"@"andd$<"["then800
720 ifd$>"[192]"andd$<"[219]"then800
730 ifd$=" "ord$="."or(d$=","andec)then800
740 if((d$>"/")and(d$<":"))or((d$>"@")and(d$<"g"))then800
750 ifd$="*"andlen(a$)=0thenprintd$:a$=d$:return
760 ifd$=chr$(13)and(len(a$)oree)thenprint" ":return
770 ifd$<>chr$(20)then640
780 iflen(a$)=0then640
790 a$=left$(a$,len(a$)-1):print"[157] [157][157]";:goto640
800 printd$;:a$=a$+d$:ifd$<>chr$(20)thengoto640
810 print"";:forx=1to18:print" ":nextx
820 return