Subject: Re: m68k Asm and C
To: Ken Nakata <kenn@synap.ne.jp>
From: Henry B. Hotz <hotz@jpl.nasa.gov>
List: port-mac68k
Date: 06/23/1999 18:54:05
At 6:30 PM -0700 6/23/99, Ken Nakata wrote:
>On Wed, 23 Jun 1999 18:22:36 -0700, "Henry B. Hotz" <hotz@jpl.nasa.gov> wrote:
>> Sounds like a base conversion issue.  Without the # it probably defaults to
>> a different one of {octal, decimal, hex} from what it does with.  If you
>> can't figure out what it's doing it should be easy to look at hexdump(1) of
>> the object file output of some simple test cases.
>
>Noooooooooooooooooooo!
>
>#number and number are immediate and absolute addressing modes,
>respectively.  IOW, "movel #1234,d0" loads 1234 into d0, but "movel
>1234,d0" reads a long word from memory address 1234 and loads the
>value into d0.  #number and number have different semantics!

Oops.

I guess that might have been clear if you used good test numbers for the
test program though.

Signature failed Preliminary Design Review.
Feasibility of a new signature is currently being evaluated.
h.b.hotz@jpl.nasa.gov, or hbhotz@oxy.edu