| ??? 12/23/04 14:58 Read: times |
#83705 - No line numbers example Responding to: ???'s previous message |
The program that converts the source file into a BASIC program that the interpreter understands is able to recognize a label, followed by a colon, on a line by itself. Take the following code snippet for example:
REM
REM Main program initialization and run loop
REM
Initialize_Variables:
U=255 : V=256 : BEGIN=7000H : ESC=27
PTR_SAV=40F0H : PTR_MAX=PTR_SAV + 2 : FULL=0
Initialize_Pointer:
XBY(PTR_SAV)=INT(BEGIN/V) : XBY(PTR_SAV+1) = BEGIN.AND.U
User_Menu:
PRINT : PRINT "Press 'D' to Display the Data,"
PRINT " 'C' to change the sample count,"
PRINT " or any other key to start the data logging."
GOSUB Get_Char : PRINT
REM CHECK FOR "r" OR "R" TO REPEAT DATA DUMP
IF (G=44H).OR.(G=64H) THEN GOTO Data_Dump
REM CHECK FOR "c" OR "C" TO REPEAT PARAMETER UPDATE
IF (G=43H).OR.(G=63H) THEN GOTO Ask_Change_Pointer
REM Check if the data has already been collected.
IF FULL = 0 THEN GOTO Collect_Data
PRINT "Data has already been collected. Overwrite? (Y/N)"
GOSUB Get_Char : PRINT
REM CHECK FOR "y" OR "Y" TO LOG DATA AGAIN
IF (G=59H).OR.(G=79H) THEN GOTO Collect_Data
GOTO User_Menu
These utilities were developed specifically for the version of BASIC on the BlueEarth microcontrollers. Theerfore, it may not work correctly on all BASIC-52 programs. However, they were all derived from the original BASIC-52, so it may be worth a try. The BASIKIT program and various utilities were created back in the DOS days, but they work in all flavors of Windows that I have tried them in. Note that I have not yet had the (dis)pleasure of the latest Windows eXPerience :-) -- Tom Bachmann |



