I installed the lastest version of gcbasic and the lastest versione of mplab
but I don't find GCBasic in the list of "Language Toolsuite". Why ?
Do I do something wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No. Here is an example of using assembler in GCBasic:
If HighLow.8 1 Then 'Test for sign bit
'OWTemp = HighLow/2
OWTempL = HighLow 'Split word into bytes so byte size
OWTempH = HighLow_H 'Assembler operations can be used
comf OWTempL 'Invert Low byte bits in the Register
incf OWTempL 'Add One to Low byte to turn into 2's compliment
comf OWTempH 'Invert High byte bits
OWTemp = OWTempL 'Reassemble bytes back into word
OWTemp_H = OWTempH
Could have used GCBasic command OWTempL = !HighLow just as easily, with the same effect. I am not the one to ask about assembler operations, but it seems to me that someone was using their GCBasic COMPILED.ASM file in MPLAB.
Kent
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed the lastest version of gcbasic and the lastest versione of mplab
but I don't find GCBasic in the list of "Language Toolsuite". Why ?
Do I do something wrong?
GCBASIC cannot be integrated into MPLAB, as no toolsuite file has been prepared to enable it to.
Does this mean we cannot use assembly language with the higher level Basic
No. Here is an example of using assembler in GCBasic:
If HighLow.8 1 Then 'Test for sign bit
'OWTemp = HighLow/2
OWTempL = HighLow 'Split word into bytes so byte size
OWTempH = HighLow_H 'Assembler operations can be used
comf OWTempL 'Invert Low byte bits in the Register
incf OWTempL 'Add One to Low byte to turn into 2's compliment
comf OWTempH 'Invert High byte bits
OWTemp = OWTempL 'Reassemble bytes back into word
OWTemp_H = OWTempH
Could have used GCBasic command OWTempL = !HighLow just as easily, with the same effect. I am not the one to ask about assembler operations, but it seems to me that someone was using their GCBasic COMPILED.ASM file in MPLAB.
Kent