Atari Logo
Atari Computer

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

Assembler

Previous Next TOC

NAME MOVEM -- Move multiple registers
SYNOPSIS
MOVEM<register list>,<ea>
MOVEM<ea>,<register list>
Size = (Word, Long)
FUNCTION Registers in the register list are either moved to or fetched from consecutive memory locations at the specified address. Data can be either word or long word, but if the register list is destination and the size is word, each register is filled with the source word sign extended to 32-bits.

Also, in the case that the register list is the destination, register indirect with predecrement is not a valid source mode. If the register list is the source, then the destination may not be register indirect with postincrement.
MOVEM.LD0/D1/A0,(A2)+;invalid
MOVEM.W-(A1),D5/D7/A4;invalid
The register list is accessed with D0 first through D7, followed by A0 through A7.

FORMAT
<ea>
1514131211109876543210
01001dr001SIZEMODEREGISTER
MASK FROM REGISTER LIST
dr specifies move direction:
0->registers to memory
1->memory to registers
MASK FROM REGISTER LIST specifies registers which must be moved and indicates their move order.

For pre-decrementing, mask has the following format:
1514131211109876543210
D0D1D2D3D4D5D6D7A0A1A2A3A4A5A6A7
 ^
First register to be moved+

For post-incrementing, mask has the following format:
1514131211109876543210
A7A6A5A4A3A2A1A0D7D6D5D4D3D2D1D0
 ^
First register to be moved+

SIZE
0->16 bits.
1->32 bits.
REGISTER <ea> specifies memory address of move.

Move from registers to memory, addressing modes allowed are:
Addressing ModeModeRegister
Dn--
An--
(An)010No reg. An
(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)--
(d8,PC,Xi)--
(bd,PC,Xi)--
([bd,PC,Xi],od)--
([bd,PC],Xi,od)--
#data--

Move from memory to registers, addressing modes allowed are:
Addressing ModeModeRegister
Dn--
An--
(An)010No reg. An
(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
#data--

RESULT None.


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