Menu

GCASM Hangs on assembler commands

2009-12-02
2013-05-30
  • Nobody/Anonymous

    Here is simple program with assembler that hangs the GCASM for some reason.

        #chip 18lf14k22,16
        #config  OSC=IRCCLKOUT, PLLEN=ON
       
        #define led PortC.0
        dir LED out
        'set internal osc to 16mhz '111', 8mhz '110'
        IRCF2=1
        IRCF1=1
        IRCF0=1
        Do
        nop
        Until HFIOFS=1 'wait for HFIOSC to stablize
       
        start:
        bsf led
        bcf led
        'Set Led On
        'Set Led Off
        goto start

            ------- Capture Output -------
        > "C:\Program Files\GCBasic\Compile.bat" C:\PROGRA~1\CRIMSO~3\18FXXX~1\18LF14~3
        Great Cow BASIC (0.9 12/8/2009)
       
        Compiling C:\PROGRA~1\CRIMSO~3\18FXXX~1\18LF14~3 …
        Done
       
        Assembling program …
       
       
        An error has been found:
       
        Error: GCASM: Symbol 3970.0 has not been defined
       
        The message has been logged to the file Errors.txt.
       
        Press any key to continue

     
  • Alistair George

    Alistair George - 2009-12-07

    The error message is saying it cant find something - pse check your chip specs in the chipdata file for that specific chip and look for your defines which probably wont be found, but from there you should be able to work out the equivalent.

     

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.