Ldw Load Word - Samsung S3C84I8 User Manual

Table of Contents

Advertisement

INSTRUCTION SET
LDW
— Load Word
dst,src
LDW
dst ← src
Operation:
The contents of the source (a word) are loaded into the destination. The contents of the source
are unaffected.
No flags are affected.
Flags:
Format:
opc
opc
Given: R4 = 06H, R5 = 1CH, R6 = 05H, R7 = 02H, register 00H = 1AH, register 01H = 02H,
Examples:
register 02H = 03H,and register 03H = 0FH
LDW
LDW
LDW
LDW
LDW
LDW
In the second example, please note that the statement "LDW 00H,02H" loads the contents of the
source word 02H and 03H into the destination word 00H and 01H. This leaves the value 03H in
the general register 00H and the value 0FH in the register 01H.
Other examples show how to use the LDW instruction with various addressing modes and
formats.
6-58
src
dst
dst
src
RR6,RR4
00H,02H
RR2,@R7
04H,@01H
RR6,#1234H →
02H,#0FEDH →
Bytes
Cycles
3
4
R6 = 06H, R7 = 1CH, R4 = 06H, R5 = 1CH
Register 00H = 03H, register 01H = 0FH,
register 02H = 03H, register 03H = 0FH
R2 = 03H, R3 = 0FH,
Register 04H = 03H, register 05H = 0FH
R6 = 12H, R7 = 34H
Register 02H = 0FH, register 03H = 0EDH
S3C84I8/F84I8/C84I9/F84I9
Opcode
Addr Mode
(Hex)
dst
8
C4
RR
8
C5
RR
8
C6
RR
src
RR
IR
IML

Advertisement

Table of Contents
loading

This manual is also suitable for:

S3c84i9S3f84i8S3f84i9

Table of Contents