Shift Left 8 Bit by 1 Bit
Shift Left 8 Bit by 1 Bit
Shift Left 8 Bit by 1 Bit
Stop
Program:
Address
Mnemonics
Operand
Opcode
2000
LDA
3000H
3A
2001
00
Lower-order of 3000H.
2002
30
Higher-order of 3000H.
17
32
2005
01
Lower-order of 3001H.
2006
30
Higher-order of 3001H.
76
Halt.
2003
RAL
2004
STA
2007
3001H
HLT
Remarks
Explanation:
This program performs the left shift operation on an 8-bit number by one bit stored in
memory location 3000H.
Let us assume that the operand stored at memory location 3000H is 05H.
Page 1 of 2
8085 Programs
Output:
Before Execution:
3000H:
05H
After Execution:
3001H:
0AH
Page 2 of 2