-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asm: Add .equiv and .quv defines (#1557)
* asm: Add .equiv define * Asm, Units: gas: test .equ, .equiv, .eqv * asm: Add .eqv define. Treat .equ, .equiv, .eqv as OP_EQU GNU AS documentation of the directives: .equiv: https://sourceware.org/binutils/docs/as/Equiv.html#Equiv .eqv: https://sourceware.org/binutils/docs/as/Eqv.html#Eqv (squash 3 comments into one commit by @masatake).
- Loading branch information
Showing
3 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
X input.s /^#define X /;" d line:7 file: end:7 | ||
_EQU input.s /^.equ _EQU equ1$/;" d line:14 | ||
_EQUIV input.s /^.equiv _EQUIV equiv2$/;" d line:15 | ||
_EQV input.s /^.eqv _EQV eqv3$/;" d line:16 | ||
altsum input.s /^.macro altsum from=0, to=6$/;" m line:8 end:13 | ||
sum input.s /^.macro sum from=0, to=5$/;" m line:1 end:6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ | |
sum "(\from+1)",\to | ||
.endif | ||
.endm | ||
.equ _EQU equ1 | ||
.equiv _EQUIV equiv2 | ||
.eqv _EQV eqv3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters