Download PDF file - finechips

Transcript
CaImMAC1616
(1)
ELD
Format:
S3CC11B/FC11B
– Load Accumulator
1. ELD An, <mem>
<mem> : @rps
rpdi.adr:5 / adr:16
2. ELD An, <op>
<op> : Am
#simm:5 / #simm:16
mgx / mg
Operation:
An <- <mem> or <op>
This instruction load <mem> or <op> value to the one of 16-bit Accumulator (An). If <op> is
immediate value, it is first right adjusted and sign-extended to 16-bit value. If <op> is 16-bit
register, it is zero-extended.
Flags: Z*:
Set if result is zero. Reset if not.
*
Set if overflow is generated. Reset if not.
*
Set if loaded value is negative.
V:
N:
Notes: * Flags are not affected when a source operand is from memory.
Examples:
ELD A, @RP0+S0
ELD B, RPD1.5h
ELD C, #0486h
ELD D, A
ELD A, RP0
# of Words:
1
2 when <op> is : adr:16 or #simm:16
21-78