Subject: RE: Objdump output question
To: der Mouse <port-vax@NetBSD.org>
From: Kenn Humborg <kenn@bluetree.ie>
List: port-vax
Date: 02/10/2004 10:25:40
> >> DEC syntax for this would be "MOVAL 0xff, @0x10000000".
> > Nitpick:  it's been a while, but IIRC doesn't MACRO-32 use ^X not 0x
> > right?
> 
> Someone else wrote me off-list pointing out that 0x was wrong,
> uncertainly suggesting %X.  Yes, I forgot about the base notation when
> concentrating on the indirect and literal notation.  (Of the two, ^X
> looks more likely to me; I do clearly remember ^B, ^S, ^W, etc, for
> specifying various sizes.)

You're thinking of L^, W^, B^ and S^ for qualifying the type of an
operand.  So you could see

   movl #L^^X12, r0
   movl #W^^X12, r0
   movl #B^^X12, r0
   movl #S^^X12, r0

These all do the same think, but the first argument gets encoded
differently each time (top-to-bottom is longest-to-shortest).

Later,
Kenn