base/asm-common.h: Add an `IMM' macro for immediate operands.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 18 Aug 2019 01:13:18 +0000 (02:13 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 8 Sep 2019 10:37:54 +0000 (11:37 +0100)
commit7e25100590918ad3eca8cafd4eac1af9081f6719
tree9bb278a6fe8f88b7d9242d88090b6bd89fc4f8b8
parent3c0490d192453fad6827c29dfc21af2587772dad
base/asm-common.h: Add an `IMM' macro for immediate operands.

The most useful version of this is `IMM(r, ...)', because that varies
according to the target architecture, but the others might be considered
an improvement over the Intel syntax.

It turns out that I don't actually need this: the motivation was caused
by a typo-ed register field.  But I think it still makes a useful
addition.
base/asm-common.h