Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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


List of 30 messages in thread
TopicAuthorDate
Basic52            01/01/70 00:00      
   I remember that            01/01/70 00:00      
      Fullscreen editor            01/01/70 00:00      
         ...and in a full circle            01/01/70 00:00      
            Of course.            01/01/70 00:00      
         Line numbers and editors            01/01/70 00:00      
         MSX micros            01/01/70 00:00      
         BASIC with no line numbers            01/01/70 00:00      
            Impressive!            01/01/70 00:00      
               Line number-less BASIC            01/01/70 00:00      
                  labels?            01/01/70 00:00      
            still don' know how            01/01/70 00:00      
               Look to VB            01/01/70 00:00      
               No line numbers example            01/01/70 00:00      
                  Now this is clear.            01/01/70 00:00      
   A little Christmas gift            01/01/70 00:00      
      Basic52. Thank you.            01/01/70 00:00      
         it would, if            01/01/70 00:00      
            Take it as a toy.            01/01/70 00:00      
            Simulator and IDE too ?            01/01/70 00:00      
   Nice job !            01/01/70 00:00      
      Data limited, not code            01/01/70 00:00      
         Philips Flash write            01/01/70 00:00      
            Re: Philips Flash write            01/01/70 00:00      
               Internal XRAM            01/01/70 00:00      
                  Re: Internal RAM            01/01/70 00:00      
                     More Internal XRAM            01/01/70 00:00      
                        uPSD 3xxx not really suitable            01/01/70 00:00      
                           uPSD 3xxx            01/01/70 00:00      
                     superseed, not obsolete            01/01/70 00:00      

Back to Subject List