#254 Syntax error - #define problem

None
closed
Borut Ražem
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

  • 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


Cancel   Add attachments