0

Say we have the following:

MOVE.L #$1234ABCD,D0
MOVE.L #$45670012,D1
MULS D0,D1

What will be the value of D1? According to a mc68000 simulator, it will be FFFA146A. According to the book, the two lowest order words of each register will be multiplied and the result will be stored as a longword. Therefore, it will be 0xABCD * 0x0012 = 0xC146A. According to this rule, D1 should be 000C146A. I notice the 146A values are the same as in the simulator, but where does the A come from, and the Fs? Is the simulator wrong?

Thank you

4

1 に答える 1

2

Motorolaのコードについては0を知っていますが、署名された乗数を使用しているという事実と関係があると思いますか?符号なし乗数を使用してみてください。

于 2012-03-07T00:41:26.863 に答える