Perhaps an example will help:

 

I had the following program in a folder saved as Drop.txt:

 

0 CLS:POKE-902,PEEK(63795):F=.25+RND(1)/4:W=-.25+RND(1)/2:X=0:Y=1:B%=5+25*RND(1)

1 
C=0:PRINT@280+B%,CHR$(27)"Vý"SPACE$(9-E)"ý":PRINT@200,"S:"S:PRINT"L:"5-L:PRINTUSING"W:#.#";W

2 C=C+F:PRINT@C," ýý":IFX<>0THENPRINT@OX+40*OY%," 
":OX=X:OY%=Y:Y=Y+.3:X=X+W:GOTO6

4 IFINKEY$=" "THENX=C+2:F=F*2:OX=0:OY%=0

5 IFC>=37THENPRINT@37,"    ":C=0:GOTO2ELSE2

6 IFY<7.01THENPRINT@X+40*FIX(Y),"ý":GOTO4

7 
IFX>=B%+1ANDX<=B%+10-ETHENPRINT@97,"Hit!":CALL4811:S=S+10*(E+1):E=E-(E<8):GOTO0

8 L=L+1:IFL<5THENPRINT@97,"MISS!":CALL4811:GOTO0ELSEPRINT@55,"Game over":END

 

I executed MTLineRef and entered Drop.txt as the input file and DropLR.txt  as 
the output file.   

 

The program reads Drop.txt and creates DropLR.txt.

 

Here is what DropLR.txt looks like:

 

0 CLS:POKE-9  7  8 

2 C=C+F:PRIN  5  5 

4 IFINKEY$="  6 

6 IFY<7.01TH  2

 

>From the above I now know that line 0 is referenced in lines 7 and 8, line 2 
>is rferenced twice in line 5, etc.

 

I hope that helps.

Lloyd

 

 

 

 

From: M100 <m100-boun...@lists.bitchin100.com> On Behalf Of Peter Vollan
Sent: Monday, April 10, 2023 1:29 PM
To: m...@bitchin100.com
Subject: Re: [M100] MTLineRef - Resending

 

I still don't understand.

 

On Mon, 10 Apr 2023 at 02:58, <lloydel...@comcast.net 
<mailto:lloydel...@comcast.net> > wrote:

Here is what I meant to send.   Sorry about the poorly worded previous email.

 

Good morning to all:

 

I’ve written a Windows Console program in C that will take a TRS-80 Model 100 
BASIC program and will list the line number and first ten characters of each 
line that is referenced by another line. It will also list the line numbers 
that reference it.

The program can be found at  
<https://www.github.com/LEJ-Projects/MTLineRef?fbclid=IwAR25_4Ud4Y24Fw-FaZXAUUd1QxpZeccVHN6oeR3KrY7_9_T7NemeQ6tfbFg>
 www.GitHub.com/LEJ-Projects/MTLineRef.

 

I hope that someone finds this useful.

Lloyd

 

 

Reply via email to