Download Print this page

ZiLOG Z80380 User Manual page 199

Advertisement

Z
ILOG
SLA dst
Operation:
tmp
C
dst(0)
dst(n+1)
The contents of the destination operand are shifted left one bit position. Bit 7 of the
destination operand is moved to the Carry flag and zero is shifted into bit 0 of the destination.
Flags:
S:
Set if the most significant bit of the result is set; cleared otherwise
Z:
Set if the result is zero; cleared otherwise
H:
Cleared
P:
Set if parity of the result is even; cleared otherwise
N:
Cleared
C:
Set if the bit shifted from bit 7 was a 1; cleared otherwise
Addressing
Mode
Syntax
SLA R
R:
IR:
SLA (HL)
X:
SLA (XY+d)
Field Encodings: r:
per convention
y: 0 for IX, 1 for IY
DC-8297-03
dst = R, IR, X
← dst
← dst(7)
← 0
← tmp(n) for n = 0 to 6
Instruction Format
11001011 00100-r-
11001011 00100110
11y11101 11001011 ——d— 00100110
SHIFT LEFT ARITHMETIC (BYTE)
Execute
Time
2
2+r
4+r
Z380
U
'
M
SER
S
ANUAL
SLA
Note
I
5-165

Advertisement

loading
Need help?

Need help?

Do you have a question about the Z80380 and is the answer not in the manual?

Questions and answers