-
An argument used to define a label within a macro does not work as expected. Consider the following macro:
.macro deflabel
@0:
.endm
One would expect the invocation:
deflabel RightHere
to generate
Righthere:
But it doesn't. This can be gotten around by redefining the macro as:
.macro genlabel
.equ @0 = PC
.endm
So it's not a stopper, but the behavior is...
2009-10-13 03:30:35 UTC by nobody
-
The attached code snippet shows register aliases being defined, then undefined. Although undefined, re-use of the register generates a warning message and the definition can still be referenced. It seems almost as if .undef does nothing.
2009-10-13 03:21:57 UTC by nobody
-
tobias-weber added petrus69 to the avra - Atmel AVR Assembler project.
2009-08-24 12:20:26 UTC by tobias-weber
-
Please do not ship the generated Makefile and the binary in the source package as it makes a proper packaging for distributions (Debian in my case) more complicated. I don't see any reason having these shipped in the (architecture-independed) source package. Also the (hidden) directory .deps seems to be a leftover from a build.
This report refers to avra 1.2.3.
Cheers,
Tobias (tklauser...
2008-12-22 11:55:18 UTC by nobody
-
Hi,
I think it would be nice to have an AddressOf operator for registers that returns the register number for a register alias, to be used sililarly to & operator in C. The assembler code could look like this:
.def alias = R16
...
ldi R17, [alias] ;loads 16 into R17
In this example, [] is the AddressOf operator. It could be used to access registers using ld/st, e.g. when calling a...
2008-06-21 19:57:10 UTC by nobody
-
The common mechanism for line cintinuation with backslash as the last character of a line (to continue it in next source line) does not work.
Example:
.db 1, 2, 3, \
4, 5, 6
Since this is a common mechanism and supported by avrasm, it should be supported by avra as well.
Demo patch is attached.
2008-05-23 15:54:42 UTC by nobody
-
avra-1.2.3:
Currently AVRA will not detect functions with one or more whitespace characters between function name and open bracket, i.e. it will not compile
low (5)
but only
low(5)
This is annoying since it forces a programming style!
It is also a deviation to avrasm.
Patch is attached.
2008-05-23 14:18:36 UTC by nobody
-
Since version 1.2.0 (according to changelog) forward references are not allowed anymore for .ifndef
But this is a bug, since it should be possible to define sth. only if it is not yet defined. This is a common programming technique!
Example:
It must be possible to define ABC only if it is not yet defined, like
.ifndef ABC
.equ ABC = 5
.endif.
2008-05-23 14:04:44 UTC by nobody
-
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
2008-05-15 02:20:13 UTC by sf-robot
-
Yes that is basically all you have to do. Many thanks for the code sniplet. I will add it into the next release. Regards, Tobias.
2008-04-30 19:13:55 UTC by tobias-weber