Ldc/Lde — Load Memory (Continued) - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
6.3.39 LDC/LDE — LOAD MEMORY (CONTINUED)
LDC/LDE
Given R0 = 11H, R1 = 34H, R2 = 01H, R3 = 04H; Program memory locations
Examples:
0103H = 4FH, 0104H = 1A, 0105H = 6DH, and 1104H = 88H; External data memory locations
0103H = 5FH, 0104H = 2AH, 0105H = 7DH, and 1104H = 98H:
LDC
LDE
(NOTE)
LDC
LDE
LDC
LDE
(note)
LDC
LDE
LDC
LDE
LDC
LDE
(NOTE)
LDC
LDE
These instructions are not supported by masked ROM type devices.
NOTE:
R0,@RR2
R0,@RR2
@RR2,R0
@RR2,R0
R0,#01H[RR2]
R0,#01H[RR2]
#01H[RR2],R0
#01H[RR2],R0
R0,#1000H[RR2]
R0,#1000H[RR2]
R0,1104H
R0,1104H
1105H,R0
1105H,R0
; R0  contents of program memory location 0104H
; R0 = 1AH, R2 = 01H, R3 = 04H
; R0  contents of external data memory location 0104H
; R0 = 2AH, R2 = 01H, R3 = 04H
; 11H (contents of R0) is loaded into program memory
; location 0104H (RR2),
; working registers R0, R2, R3  no change
; 11H (contents of R0) is loaded into external data memory
; location 0104H (RR2),
; working registers R0, R2, R3  no change
; R0  contents of program memory location 0105H
; (01H + RR2),
; R0 = 6DH, R2 = 01H, R3 = 04H
; R0  contents of external data memory location 0105H
; (01H + RR2), R0 = 7DH, R2 = 01H, R3 = 04H
; 11H (contents of R0) is loaded into program memory location
; 0105H (01H + 0104H)
; 11H (contents of R0) is loaded into external data memory
; location 0105H (01H + 0104H)
; R0  contents of program memory location 1104H
; (1000H + 0104H), R0 = 88H, R2 = 01H, R3 = 04H
; R0  contents of external data memory location 1104H
; (1000H + 0104H), R0 = 98H, R2 = 01H, R3 = 04H
; R0  contents of program memory location 1104H,
; R0 = 88H
; R0  contents of external data memory location 1104H,
; R0 = 98H
; 11H (contents of R0) is loaded into program memory location
; 1105H, (1105H)  11H
; 11H (contents of R0) is loaded into external data memory
; location 1105H, (1105H)  11H
6-52
6 INSTRUCTION SET

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents