Professional Documents
Culture Documents
1. Aim/Overview of the practical: Write two programs to shift left a 8-bit number by 1 bit
and 2 bit.
2. Task to be done: We have to write two programs to shift left a 8-bit number by 1 bit
and 2 bit.
Begin.
Load number in Accumulator using LDA command.
Shift left the value of Accumulator using RAL command.
Store the value of A using STA command.
Halt the program.
LDA 3000H
RAL
STA 3001H
HLT
#ORG 3000H
#DB 50H
LDA 3000H
RAL
RAL
STA 3001H
HLT
#ORG 3000H
#DB 50H
6. Result/Output/Writing Summary:
Shifting by 1 bit:
Shifting by 2 bits:
Learning outcomes (What I have learnt):