Gas usage query

John Darrington john@darrington.wattle.id.au
Thu Mar 8 14:29:00 GMT 2018


I want to define an alias for an immediate value.  So I'm looking for something
similar to the c pre-processor's #define  - but I can't find a suitable directive
in the gas manual.

.set, .equiv and friends don't do the job because they actually define symbols.
.macro doesn't do the job either since it actually emits code.

What I want is something like

	.define foo #24
	
         ;; Load the D6 register with 24
	ld d6, foo


Is there a way to to this?

-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20180308/c5b3b7d3/attachment.sig>


More information about the Binutils mailing list