Professional Documents
Culture Documents
20BCS7550 Yash Gautam Exp8
20BCS7550 Yash Gautam Exp8
1. Aim/Overview of the practical: Write two programs to mask lower and higher nibble of
an 8-bit number.
2. Task to be done: We have to write two programs to mask lower and higher nibble of an
8-bit number.
Begin.
Load the 8-bit number in accumulator.
Perform the AND operation of Accumulator with F0H.
Store the value of A using STA command.
Halt the program.
#BEGIN 000H
LDA 1000H
ANI F0H
STA 1001H
HLT
#ORG 1000H
#DB 65H
#BEGIN 000H
LDA 1000H
ANI 0FH
STA 1001H
HLT
#ORG 1000H
#DB 65H
6. Result/Output/Writing Summary: