Atari Logo
Atari Computer

Hauptseite -
Welches System? -
Hardware -
Software -
Emulatoren -
Internet
MausNet
Programmieren
Verweise
Über

Assembler

Previous Next TOC

NAME MULS -- Signed multiply
MULU -- Unsigned multiply
SYNOPSIS
MULS.W<ea>,Dn16*16->32
MULS.L<ea>,Dn32*32->32 68020+
MULS.L<ea>,Dh:Dl32*32->64 68020+
MULU.W<ea>,Dn16*16->32
MULU.L<ea>,Dn32*32->32 68020+
MULU.L<ea>,Dh:Dl32*32->64 68020+
Size = (Word)
Size = (Word, Long) 68020+
FUNCTION Multiply two signed (MULS) or unsigned (MULU) integers to produce either a signed or unsigned, respectivly, result.

This instruction has three forms. They are basically word, long word, and quad word. The first version is the only one available on a processore lower than a 68020. It will multiply two 16-bit integers are produce a 32-bit result. The second will multiply two 32-bit integers and produce a 32-bit result.

The third form needs some special consideration. It will multiply two 32-bit integers, specified by <ea> and Dl, the result is (sign) extended to 64-bits with the low order 32 being placed in Dl and the high order 32 being placed in Dh.

FORMAT In the case of MULS.W:
 <ea>
1514131211109876543210
1100REGISTER111MODEREGISTER
In the case of MULS.L:
 <ea>
1514131211109876543210
0100110000MODEREGISTER
0Dq REGISTER1SIZE0000000Dr REGISTER
In the case of MULU.W:
 <ea>
1514131211109876543210
1100REGISTER011MODEREGISTER
In the case of MULU.L:
 <ea>
1514131211109876543210
0100110000MODEREGISTER
0Dq REGISTER0SIZE0000000Dr REGISTER
"REGISTER" indicates the number of data register.

"Dq REGISTER" indicates the number of data register for destination operand. This register first contains 32 bits of low weight of dividend, and after the value of quotient on 32 bits.

"SIZE" specifies if dividend is on 32 or 64 bits:
0->32 bits dividend placed in Dq.
1->64 bits dividend placed in Dr:Dq.
"Dr REGISTER" indicates the number of data register for destination operand. This register first contains 32 bits of upper weight of dividend if "SIZE" = 1, and after the value of rest on 32 bits.

If Dr and Dq represents the same register, only quotient on 32 bits is put in Dq.
<ea> field specifies source operand, allowed addressing modes are:
Addressing ModeModeRegister
Dn000No reg. Dn
An--
(An)010No reg. An
(An)+011No reg. An
-(An)100No reg. An
(d16,An)101No reg. An
(d8,An,Xi)110No reg. An
(bd,An,Xi)110No reg. An
([bd,An,Xi]od)110No reg. An
([bd,An],Xi,od)110No reg. An
Addressing ModeModeRegister
Abs.W111000
Abs.L111001
(d16,PC)111010
(d8,PC,Xi)111011
(bd,PC,Xi)111011
([bd,PC,Xi],od)111011
([bd,PC],Xi,od)111011
#data111100

RESULT
X-Not affected.
N-Set if the result is negative. Cleared otherwise.
Z-Set if the result is zero. Cleared otherwise.
V-Set if overflow. Cleared otherwise.
C-Always cleared.


Best viewed with any browser English version not yet available.

Änderungen und Irrtümer vorbehalten. Letzte Änderung:
14 September 2001.
Home - Mail an den Webmaster - Impressum