Freescale Semiconductor SC140 Move.b d3,r7+$3, MOVE.B DR,ea, MOVE.B SP+s15,DR, MOVE.B DR,SP+s15

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 579
Image 579

MOVE.B

MOVE.B DR,(ea)

Writes a byte to memory. The effective memory address is obtained from an address register with an optional offset or post-increment.

MOVE.B (SP+s15),DR

Reads a byte from memory, sign-extending it into a register. The effective memory address is obtained from the active stack pointer (SP) with a signed 15-bit offset.

MOVE.B DR,(SP+s15)

Writes a byte to memory. The address is obtained from the stack pointer with a signed 15-bit offset.

Status and Conditions that Affect Instruction

Register Address

Bit Name

Description

MCTL[31:0]

AM3–AM0

Address modification bits when updating R0–R7. Otherwise, the

 

 

instruction is not affected by MCTL.

SR[18]

EXP

Determines which stack pointer is used when the stack pointer is an

 

 

operand. Otherwise, the instruction is not affected by SR.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

Ln

L

Clears the Ln bit in the destination registers.

Example

move.b d3,(r7+$3)

Register/Memory Address

MCTL

D3

R7

$00000053

BeforeAfter

$0000 0000

$FF FFFF FFF8

$0000 0050

$F8

SC140 DSP Core Reference Manual

A-265

Page 579
Image 579
Freescale Semiconductor SC140 specifications Move.b d3,r7+$3, MOVE.B DR,ea, MOVE.B SP+s15,DR, MOVE.B DR,SP+s15