Menu

GCBasic and Vista Home Premium SP1

Help
2009-05-23
2013-05-30
  • Gabi Balsanu

    Gabi Balsanu - 2009-05-23

    Hi to all,

    I am trying over 4 hours to make this thing to work. I dld the last update. When I drag a .bas file (from desktop) to GCBasic folder, after that little "DOS" window I receive a .bak file. That file it is a copy of original file. NO ASM,...
    Can somebody tell what should I do to make a .asm file with this sw?
    This software work with Vista?
    If so can one Vista user tell me how he/she set it up?

    Many thanks in advance
    Gabi

    Speccs:
    Vista HP SP1
    HDD 320GB
    RAM 4GB
    MPLAB last version 

     
    • Hugh Considine

      Hugh Considine - 2009-05-23

      The trouble is that GCBASIC will try to write its output to a file named compiled.asm in the GCBASIC install folder, which is usually Program Files. Vista doesn't like programs writing to Program Files unless they're run with administrator privileges, so GCBASIC doesn't work with the default options. There are a couple of solutions.

      One option is to install GCBASIC somewhere other than Program Files. This way, it can write to its folder as much as needed.

      Another option is make GCBASIC write its output to the folder where the input file is. To do this you'll need to download the latest version of GCBASIC from http://gcbasic.sourceforge.net/newfiles/update.zip . Extract it to the Program Files folder, replacing the files in the original GCBASIC installation. Then, paste this into a file and save it in the GCBASIC folder as gcbasic.ini:

      [gcbasic]
      Verbose = n
      PauseOnError = y
      Assembler = GCASM
      WorkingDir = tempdir

      Once this is done, drag and drop a file onto gcbasic.exe. You should get a .asm file and a .hex file in the same folder as the original file.

       
    • Gabi Balsanu

      Gabi Balsanu - 2009-05-23

      I try both solution but NADA. Anything else I should try, or maybe other software!!!

      Regards
      Gabi 

       
    • J Olson

      J Olson - 2009-05-23

      I have Vista Home sp1 also and I have my GCBasic folder in the program files folder and works fine.

      Did you right mouse on compile.bat, goto properties, click the combatibility tab and set mode to run as Windows XP SP2?

      That worked for me.

       
      • Gabi Balsanu

        Gabi Balsanu - 2009-05-23

        I try it everything I know but nothing -NO txt. Where it supposed to be created that damn file?

        Gabi

         
      • Gabi Balsanu

        Gabi Balsanu - 2009-05-23

        It appear something it can be found. How can I stop that "DOS" window to read atlist?

        Gabi

         
    • Gabi Balsanu

      Gabi Balsanu - 2009-05-24

      After 1 night of many frustration I was able to make my first file. HOOORRAAAY. I will tell you Vista it is a big PITA for this kind of application (open source). You must be sure to make everything compatible with XP SP2 and it is also a must to use Hugh solution with that .ini file.
      Thank you Hugh

      Regards
      Gabi

       
    • Gabi Balsanu

      Gabi Balsanu - 2009-05-25

      Hi again,

      Now I have another problem. I dont have a .hex file generated. How can I solve that. Please help.

      Regards
      Gabi

       
      • Hugh Considine

        Hugh Considine - 2009-05-25

        Are you using the update? I thought I'd made it generate a hex file by default, but maybe not. Try adding this to gcbasic.ini:

        Assembler = gcasm

         
    • Gabi Balsanu

      Gabi Balsanu - 2009-05-25

      INI file

      [gcbasic]
      Verbose = n
      PauseOnError = y
      Assembler = GCASM
      WorkingDir = tempdir

      COMPILE file

      @ECHO ON
      C:
      cd \PROGRA~1\GCBASIC

      GCBASIC /NC %1 /O:compiled.asm /A:makeasm.bat /P:download.bat

      DOWNLOAD file

      @ECHO ON
      REM Add the command to call your programmer application here
      REM (The file to download will be called COMPILED.HEX)

      MAKEASM file

      @ECHO ON
      C:\PROGRA~1\gpasm -i -w2 compiled.asm >compiled.err
      del compiled.cod>nul

      At your recomandation I make a new ini file (above) inside GCBASIC folder to cheat Vista.

      Any solution?

      Regards
      Gabi

       
      • Hugh Considine

        Hugh Considine - 2009-05-25

        If you're using the update, you don't need any of the bat files - you need to drag and drop files onto gcbasic.exe instead. Sorry, I should have explained that earlier.

         
    • Gabi Balsanu

      Gabi Balsanu - 2009-05-25

      I move that .bat file in another folder. Still only .asm file NO .HEX file. I should delete that file from GCBasic folder? Any other solution?

      Regards
      Gabi

       
    • Hugh Considine

      Hugh Considine - 2009-05-25

      Where is the file that you're trying to compile? Also, what is the name of the asm file that is being generated?

      If you're getting a .asm file and are using the update with that gcbasic.ini file, there should be a .hex file as well. I really don't know what is happening here! Unless Vista is saving an old version of gcbasic.ini?

       
    • Gabi Balsanu

      Gabi Balsanu - 2009-05-25

      The file for compiling is loacated on desktop. The name of generated .asm file it is the same as .txt file and it located on desktop as well. I really don't understand either wtf is happened. Any place where I should look?

      Regards
      Gabi

       
    • Hugh Considine

      Hugh Considine - 2009-05-25

      I have absolutely no idea what is happening here, it's this sort of thing (with other programs, not GCBASIC in my case) that made me install Windows XP on my new computer!

      Try extracting update.zip to a folder on your desktop. Copy the gcbasic.ini file into the folder, make sure it has the right lines in it (especially the assembler = gcasm line), and then try dragging and dropping your program onto the gcbasic.exe in that folder.

       
    • Gabi Balsanu

      Gabi Balsanu - 2009-05-25

      Yeah I know but installing XP on this laptop it is a little bit tricky. I cannot find all drivers for this.
      Anyway, I try your last solution but still nothing NO .HEX file. In that little "DOS" window appear only a message about creating that .asm file with all path. Nothing about creating the second file .HEX. I think it should be a message with that. Where is located that gcasm file or command? I think there is my problem. Vista don't see or don't want to see that.
      If I replace that line (assembler=gcasm) with a path to mpasmwin what do you think - will work?

      Regards
      Gabi

       
      • Hugh Considine

        Hugh Considine - 2009-05-25

        GCASM is GCBASIC's internal assembler. It should work without needing any extra files.

        You're definitely using the update? Open up the .asm file in Notepad, if the first line doesn't have a 2009 date in it you've got the wrong file. It's the only thing I can think of!

        When GCASM is creating the .hex file, it will say "Generating machine code" in the DOS window. If this doesn't happen, then the assembler isn't running.

        In the copy of GCBASIC in the folder on the desktop, change "workingdir = tempdir" to "workingdir=instdir". This will make GCBASIC save everything in that folder it's installed in. Then, run GCBASIC and see if it produces an errors.txt file. If it does, then there's something wrong with the program that you're trying to compile or with GCBASIC.

        I really can't help any more for now, it's 2 am here. Please post anything else that you try or any messages that you get, and I'll see what I can do tomorrow.

         
    • Gabi Balsanu

      Gabi Balsanu - 2009-05-25

      Hi,

      Sorry, I didn't realize it is so late. I use update (;Program compiled by Great Cow BASIC (0.9 15/5/2009)), I think... I think assembler is not running. I don't see any messages about generating soemthing. I use one of that example file from site (Morse Code). Instdir has no effect. No .HEX file. I think it is something about path in Vista. I will try to dig more. Maye I will find something...

      I hope tommorow we will find a solution

      Good night
      Gabi

       
    • Tom

      Tom - 2009-05-25

      Hi

      I don't know if you have got your editing and compiling sorted yet.  I don't even know what tool you are using for blowing the PIC.

      I've only just seen you post, and I'm about to head off again, however if you are interested I have a step by step guide for setting up GC Basic, Textpad and MPLAB.

      This allows you a powerful editor, with syntax highlighting that will handle the compling of the basic to .asm, includind a nice(ish) output of compile process and any errors/warnings.  You can then use MPLAB to compile the .asm to .hex, but you also get the ability to simulate/debug the .asm.  Finally you can use MPLAB to blow you PIC.

      If you're interested send me message and I'll forward it to you.

      Tom

       
    • J Olson

      J Olson - 2009-05-25

      I do not have these issues, but I am not doing it "on" the desktop as you are.  I also have not had to mod all this ini, bat setting you have had too.

      I have two folders I open on my desktop.

      One is where i keep my .bas files that I create.
      The other is the GCB folder, (from program files).

      I made two shortcuts and put those on my desktop.
      I open both, then I drag and drop my .bas file onto the compile.bat in the gcb folder, and poof asm, hex, all of em get created in the gcb root.

      I have not changed anything but properties on the compile.bat to run as XP sp2.

      Not sure that helps.

       

Log in to post a comment.

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.