Write an ALP to find the 2's complement of an 8-bit number stored at 3301H. Store the result at memory location 3302 H.
Answers
Answered by
2
Answer:
A is an 8-bit accumulator which is used to load and store the data directly
LDA is used to load accumulator direct using 16-bit address (3 Byte instruction)
CMA is used to complement content of accumulator (1 Byte instruction)
STA is used to store accumulator direct using 16-bit address (3 Byte instruction)
ADI is used to add data into accumulator immediately (2 Byte instruction)
HLT is used to halt the program
Explanation:
please mark me on branlist
Similar questions