
Chapter 5
Syntax MOV A, R
Encoding
0 0100
00rr rrrr
Operation
R
→
A
Status Affected
Z
Description
Move the contents of data memory R to the accumulator. If the content is
zero, Z flag in Status register will be set, else, Z flag will be cleared.
Example
MOV A, 0x10
;
move R10 to Acc
JBS 0x03, 2
;
check zero flag of R3 (Status register)
JMP R10_NOT_ZERO
;
if Z!=1 go to R10_NOT_ZERO
…
;
Z=1, means R10=0
Syntax MOV A, @k
Encoding
1 1000
kkkk
Kkkk
Operation
k
→
A
Status Affected
None
Description
Move the immediate data (8-bit literal) to the accumulator.
Example
MOV A, @0
;
move 0 to Acc
MOV A, @0xFF
;
move 0xFF to Acc
5.3.25 MPY – Multiply
Syntax MPY R
Encoding
0 0000
10rr rrrr
Operation
R10
×
R
→
R12
:
R11
Status Affected
None
Description
Multiply R10 with data memory R. The 16-bit result is stored in the
R12
:
R11. The operation is signed-multiply.
Example
MOV A, @10
;
R10 = 10
MOV 0x10, A
MOV A, @20
;
R13 = 20
MOV 0x13, A
MPY 0x13
;
R12:R11 = R10 * R13
EM60000 Series User’s Manual
Instruction Set
•
61
Содержание 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 ...