Computer Science, asked by pawnirastogi8, 5 hours ago

Write a program to move the contents of memory location 2000H to accumulator.
Increment these contents and place then in location 2001H.

Answers

Answered by Anonymous
1

Explanation:

Program 1:

MVI A, 52H : "Store 32H in the accumulator"

STA 4000H : "Copy accumulator contents at address 4000H"

HLT : "Terminate program execution"

Answered by koteswarammat
1

Answer:

LDA 2000H  

ADI  01H

STA 2001H

Explanation:

1)  LDA 2000H : This LDA command is used to load the accumulator with the content in the specified memory location/address. so here we are loading the content of the memory location 2000H to Accumulator .

for example: If 2000H is having the value 02H then after this command the value of accumulator is also : 02H

2) ADI 01H: This ADI command is used to add some immediate/Direct value to the content in the accumulator. so here we are adding one to the content (incrementing by one) in the accumulator

Ex: after this command the value of accumulator will be : 02H +01H => 03H

3) STA 2001H: This STA command is used to store the value in accumulator to the specified memory address. so here we are storing the content of accumulator to 2001H location.

Example: after the command the value of 2001h memory address is : 03H

Similar questions