18F support is pretty near complete. GCBASIC has been altered to use some of the 18F assembly mnemonics (movff, cpfsgt, etc) where possible. Most of the routines have been tested and found to work, at least on an 18F4550.
I will use GCBasic to program the PIC 18F2455 and get some problems with the config directive. So I am very interested in the explainattion. I only can not open the link to the new helpfile.
Hans
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is because GCBASIC uses the newer style CONFIG directive on 18F chips, while gputils only supports the old _CONFIG directive.
There are two ways to solve this problem. One is to download and install MPLAB, and then alter the C:\Program Files\GCBASIC\assemble.bat file so that is as follows:
The other option is to use the built-in assembler of GCBASIC. This has not been tested fully, but it does work fairly well. To use this, you'll need to download http://gcbasic.sourceforge.net/newfiles/update.zip . Once you've extracted it to C:\Program Files\GCBASIC, open the compile.bat file in Notepad and replace
If a program doesn't work after being assembled with the built in assembler, please don't hesitate to let me know - I don't fully trust it myself yet. MPLAB may be a better option if you have a fast internet connection and can handle the large download.
This bug has arisen because I normally use MPLAB or the built-in assembler. The next version of GCBASIC will use the built-in assembler instead of gputils.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great Cow BASIC is an open-source BASIC compiler for Microchip PIC 10/12/16 series microcontrollers.
And /18 as in the most recent ( and perhaps before most recent \chipdata directory )?
Could you comment on the state of support for them?
Russ
18F support is pretty near complete. GCBASIC has been altered to use some of the 18F assembly mnemonics (movff, cpfsgt, etc) where possible. Most of the routines have been tested and found to work, at least on an 18F4550.
Only the #config directive needs to be altered to adapt a program for 18F chips, and this is explained in the latest version of the help file at http://gcbasic.sourceforge.net/newfiles/gcbasic.chm
I will use GCBasic to program the PIC 18F2455 and get some problems with the config directive. So I am very interested in the explainattion. I only can not open the link to the new helpfile.
Hans
This is because GCBASIC uses the newer style CONFIG directive on 18F chips, while gputils only supports the old _CONFIG directive.
There are two ways to solve this problem. One is to download and install MPLAB, and then alter the C:\Program Files\GCBASIC\assemble.bat file so that is as follows:
@ECHO OFF
C:\Program Files\Microchip\MPASM Suite\mpasmwin /c- /o- /q+ /l+ /x- /w1 compiled.asm
The other option is to use the built-in assembler of GCBASIC. This has not been tested fully, but it does work fairly well. To use this, you'll need to download http://gcbasic.sourceforge.net/newfiles/update.zip . Once you've extracted it to C:\Program Files\GCBASIC, open the compile.bat file in Notepad and replace
GCBASIC /NC %1 /O:compiled.asm /A:makeasm.bat /P:download.bat
with
GCBASIC /NC %1 /O:compiled.asm /A:GCASM /P:download.bat
If a program doesn't work after being assembled with the built in assembler, please don't hesitate to let me know - I don't fully trust it myself yet. MPLAB may be a better option if you have a fast internet connection and can handle the large download.
This bug has arisen because I normally use MPLAB or the built-in assembler. The next version of GCBASIC will use the built-in assembler instead of gputils.
I can't find the GCASM program you mentioned.
It is not in the update.zip.
GCASM isn't an external program, it's integrated into GCBASIC.EXE.