
Chapter 5
Syntax OR R, A
Encoding
0 0010
01rr rrrr
Operation
A | R
→
R
Status Affected
Z
Description
Inclusive OR the contents of the accumulator with the data memory R.
The result is placed in R.
Example
MOV A, @0x55
;
R10 = 0x55
MOV 0x10, A
MOV A, @0xAA
;
Acc = 0xAA
OR 0x10, A
;
R10 = R10 | Acc = 0xFF
Syntax OR A, @k
Encoding
1 1001
Kkkk
kkkk
Operation
A | k
→
A
Status Affected
Z
Description
Inclusive OR the contents of the accumulator with the immediate data k
(8-bit literal). The result is placed in the accumulator.
Example
MOV A, @0x55
;
Acc = 0x55
OR A, @0xAA
;
Acc = Acc | 0xAA = 0xFF
5.3.28 PAGE – Set Page Bits
Syntax PAGE n
Encoding
0 0000
0011
0nnn
Operation
n
→
R3 (7:5)
Status Affected
None
Description
Move immediate data n (3-bit literal) into page select bit (PS2 ~ PS0 in
status register (R3).
Example
PAGE 1
;
set page bits = 1
JMP LABEL
;
jump to “LABEL” in Page 1
…
ORG 0x0400
LABEL: …
EM60000 Series User’s Manual
Instruction Set
•
63
Содержание EM60000 series
Страница 8: ...Contents viii Contents EM60000 Series User s Manual ...
Страница 24: ...Chapter 2 16 Architecture EM60000 Series User s Manual ...
Страница 54: ...Chapter 4 46 Special Function Control EM60000Series User s Manual ...
Страница 80: ...Chapter 5 72 Instruction Set EM60000Series User s Manual ...