2022ITB089_Ass01_Microprocessor_Lab (1)
2022ITB089_Ass01_Microprocessor_Lab (1)
Name: Jeet Choudhary Roll No: 2022ITB089 5Th Semester(HY) Date: 26/08/2024
Assignment 01
Equipment Required:
four terminals:
Assembly Code:
8001H 7A H
8003H 68H
8008H 03H
Output:
Register Value
C 68H
D 7AH
E E2H
H E5H
2. Fill 20 bytes of memory starting from F250H with an natural numbers in
increasing order.(i.e 00 HinF250H, 01H in F251H and so on).
Assembly Code:
Output:
Address Value
F250 H 00 H
F251 H 01 H
F252 H 02 H
F253 H 03 H
F254 H 04 H
F255 H 05 H
F256 H 06 H
F257 H 07 H
F258 H 08 H
F259 H 09 H
F25A H 0A H
F25BH 0B H
F25CH 0C H
F25DH 0D H
F25EH 0E H
F25F H 0F H
F260 H 10 H
F261 H 11 H
F262 H 12 H
F263 H 13 H
3. Write an assembly language program to generate an AP series of 8terms
with common difference 2 and store the series in the memory location
starting from FA00H.
Assembly Code:
Output:
Address Value
FA50 H 02 H
FA51 H 04 H
FA52 H 06 H
FA53 H 08 H
FA54 H 0A H
FA55 H 0C H
FA56 H 0E H
FA57 H 10 H
4. Write an assembly language program to generate a GP series of 8 terms with
common factor 2 and store the series in the memory location starting from
FB00H.
Assembly Code:
8600 11 LXI
8601 50
8602 FA
Output:
Address Value
FB00 H 01 H
FB01 H 02 H
FB02 H 04 H
FB03 H 08 H
FB04 H 10 H
FB05 H 20 H
FB06 H 40 H
FB07 H 80 H
5. Store 5 Data bytes 42H, ACH, B8H, 2FH and 10H in memory locations
starting from F230H to F234H. Transfer the entire block of data to new
memory locations starting from F040, in reverse order.
Assembly Code:
Output:
F231 H AC H F041 H 2F H
F232 H B8 H F042 H B8 H
F233 H 2F H F043 H AC H
F234 H 10 H F044 H 42 H