[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GAS: Can't seem to get "\@" to work from within macro
From: |
Dao, Hai (AZ75) |
Subject: |
GAS: Can't seem to get "\@" to work from within macro |
Date: |
Tue, 31 Oct 2000 16:18:29 -0700 |
I can't seem to get the following GAS option to work:
\@ as maintains a counter of how many macros it has executed in this
pseudo-variable; you can copy that number to your output with `\@', but only
within a macro definition.
To get \@ to evaluate, I had to enclose it in ""s ("\@"). Looking at the
listing file of the failed assemble runs, I can see that the \@ variable is
evaluating but the thing just won't assemble correctly.
Here are some things I've tried:
--------------------------------------------------------------
.macro loop
L"\@": const GR80, 0x0000
.endm
loop
loop
--------------------------------------------------------------
.macro loop
L .set "\@": const GR80, 0x0000
.endm
loop
loop
--------------------------------------------------------------
.macro loop
L="\@": const GR80, 0x0000
.endm
loop
loop
--------------------------------------------------------------
.macro loop
const GR80, "\@"
.endm
<== You would think
that something as simple as this would assemble -- NOPE!
loop
loop
--------------------------------------------------------------
Is this a bug or am I not doing something right?
Hai Dao
Honeywell
Central Technical Operations
ASIC Center of Excellence
21111 N. 19th Ave
Phoenix, AZ 85027
M/S AZ75-N28D3
602.436.6884 *
602.436.2252 (fax) *
602.360.0735 (alpha-pager) *
mailto:address@hidden *
To send me an alpha page, click here:
mailto:address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GAS: Can't seem to get "\@" to work from within macro,
Dao, Hai (AZ75) <=