AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010)
Running on Linux Mint.
The following causes "Error: Line Too Long"
The happens because the attempt to concatenate several lines and becoming a long line, even so AVRASM can deal with. The problem itself is not only the long line concatenation issue, but by the fact that it is a "commented line", the assembler should not even think to deal with.
; .DB $00,$00,$00,$0F,$FC,$00,$0F,$FC,$00,$0F,$FC,$00,\
; $0F,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00,\
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00,\
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00,\
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00,\
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00,\
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00,\
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00,\
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00,\
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00
; $00,$FC,$00,$00,$FC,$00,$00,$FC,$00,$00,$FC,$00
; $00,$FC,$00,$00,$FC,$00,$00,$00,$00,255
Another problem found is each "\" at the end of a commented line, AVRA reduce one in the line number posted on error messages. It consider two lines in one. This is a problem when trying to locate the error, the report points to a wrong line.
"\" on comment lines should not be processed as a split line, it can be part of the comment.
Also consider the possibility to understand / / as comment, it is very usefull to temporarily eliminate several lines of the program by simply encapsulating it in
/
comment lines/
wow, the format of the post changed completely my text.
Each backslash above terminates a line, it concatenate the lines.
The text "Also consider the possibility to understand //" is in real \* *\ slash+star star+slash
How many bytes a .db line can hold to not generate a "line too long" error? My tests here shows any .db with 64 or more characters generate "line too long". I think AVRA could accept larger number of chars on a .db line, even that "concatenation" serves for this, right?
Last edit: Wagner Lipnharski 2016-11-10