Menu

Return to Basic after 35 years!

2016-05-29
2016-05-29
  • Anthony Randall

    Anthony Randall - 2016-05-29

    Hi Rob,
    I need to run a GW Basic program in your emulator but am having difficulty coming to grips with even the basics of the Basic language after so many years. I have the program resident in a directory I have called PCBasicFiles, on my XP laptop. Your PCBasic is installed and runs but I just cannot seem to get started to even load my GWBasic program! Can you possibly give me a few exact (i.e. I will enter exactly as you write it) command lines to A) get PCBasic to look at my C: drive, B) the command line to load the program and C) to run it!!
    I have tried to 'map' my drive but always get 'syntax error', I don't really know what I'm doing anyway!
    All those years ago I used to write extensive programs in basic, interpret them and later modify the Z80 code. One program printed out on 4 yards of paper! But now I'm 'all at sea'. Thanks for some starter help. Tony.

     

    Last edit: Anthony Randall 2016-05-29
    • Rob Hagemans

      Rob Hagemans - 2016-05-29

      Hi Anthony,

      A) To do this you need to mount the drive - this is not a command in PC-BASIC but in the configuration file at %AppData%\pcbasic\PCBASIC.INI (use Windows Explorer to get there - it should know where to find %AppData% if you type it in the address bar.)
      Edit the PCBASIC.INI file to make it look as follows:
      [pcbasic]
      mount=X:C:\PCBasicFiles

      The command line examples given in the manual refer to commands you can type on the Windows command prompt (the DOS prompt), which is another way of doing this. They are not BASIC commands - hence the Syntax error if you type them into the PC-BASIC window.

      Note that I'm using a virtual drive X: here to point to your folder C:\PCBasicFiles; you could point it at C:\ instead but it's difficult to work with filenames longer than 8 letters in BASIC, so this is easier.

      B) Inside the PC-BASIC windows, type LOAD "X:PROGRAM.BAS" (Enter). You'll have to replace PROGRAM.BAS with the name of your program file.

      C) Type RUN (Enter)

      Let me know if this works,
      Rob

       
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.