Menu

#254 Syntax error - #define problem

None
closed
None
1
2012-09-15
2012-08-31
Gál Zsolt
No

Assembler gives error because the symbols created by "#define" doesn't get its value.

#DEFINE standardvalue   11

; -----------------------------------------------------------------------
; reset vector
STARTUP CODE 0x000

start

    movlw   standardvalue

    END
1 Attachments

Discussion

  • Gál Zsolt

    Gál Zsolt - 2012-08-31

    This is the source code.

     
  • Borut Ražem

    Borut Ražem - 2012-09-01

    Fixed in svn revision #787.

    Borut

     
  • Borut Ražem

    Borut Ražem - 2012-09-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,6 @@
     Assembler gives error because the symbols created by "#define" doesn't get its value.
    
    +~~~~
     #DEFINE    standardvalue   11
    
     ; -----------------------------------------------------------------------
    @@ -11,3 +12,4 @@
         movlw  standardvalue
    
         END
    +~~~~
    
    • status: open --> closed
    • assigned_to: Borut Ražem
     

Anonymous
Anonymous

Add attachments
Cancel