130k views
2 votes
Using the simulator gnusim8085, write a program, which exchange of the contents of (B reg.) to the contents of the accumulator (A reg.) Implement the following programs

a. LDA 2850H : Get a byte from monitor ROM
MOV D, A : Store it in register D
STA 2880H : AND 2880H in RAM
HLT : Stop
b. LHLD 2850H : Load Hand L from monitor ROM
SHLD 2870H : Store H and L in RAM
HLT : Stop H : Put 12H into register H, & 34Hinto C-
c. LXI 1234H register L D
LXI : Put 564 into register D, & 78Hinto 5678H register E
XCHG : Swap DE with
HL HLT : Stop MOV
MA : Store the MS sum byte
HLT : Stop

Write a program to find (6F2E3D +2B1A6C).
Store the result in BDE registers

User Maxbfuer
by
7.3k points

1 Answer

4 votes

Final answer:

To find (6F2E3D +2B1A6C) in the BDE registers, you can load the first value into register A, add the second value to register A, then store the result in the BDE registers.

Step-by-step explanation:

  1. Load the value 6F2E3D into register A using MOV A, 6F2E3D
  2. Add the value 2B1A6C to register A using ADD A, 2B1A6C
  3. Store the result in the BDE registers using MOV B, A followed by MOV D, A and MOV E, A

User OshoParth
by
8.9k points