Menu

gcbasic and mplab integration

Help
2007-03-28
2013-05-30
  • Nobody/Anonymous

    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?

     
    • Hugh Considine

      Hugh Considine - 2007-03-30

      GCBASIC cannot be integrated into MPLAB, as no toolsuite file has been prepared to enable it to.

       
    • Nobody/Anonymous

          Does this mean we cannot use assembly language with the higher level Basic

       
    • Nobody/Anonymous

      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

       

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.