edited by
2,039 views
1 votes
1 votes

Identify the addressing modes of the below instructions and match them :

$\begin{array}{} \text{(a)} & \text{ADI} & \text{(i)} & \text{Immediate addressing} \\  \text{(b)} & \text{STA} & \text{(ii)} & \text{Direct Addressing} \\  \text{(c)}&  \text{CMA} & \text{(iii)}& \text{Implied Addressing} \\  \text{(d)} & \text{SUB} & \text{(iv)}& \text{Register addressing} \\ \end{array}$

  1. $\text{a-i, b-ii, c-iii, d-iv}$
  2. $\text{a-ii, b-i, c-iv, d-iii}$
  3. $\text{a-iii, b-ii, c-i, d-iv}$
  4. $\text{a-iv, b-iii, c-ii, d-i}$
edited by

1 Answer

Best answer
4 votes
4 votes

ADI means Add immediate so it is Immediate addressing

STA means copy content of accumulator to the memory location so it is direct addressing

CMA means complement the content of accumulator . The Complement Accumulator (CMA) instruction provides a 1’s complement of the 8 bits in the A register, i.e the 1’s are set to 0’s and the 0’s are set to 1’s.so it is implied

SUB is subtracting so it is register addressing

So ans should be A)

selected by
Answer:

Related questions

2 votes
2 votes
1 answer
2
Sanjay Sharma asked Jun 1, 2016
1,258 views
Identify the devices given below with their $\textsf{IC}$ numbers :$\begin{array}{clcl} \text{(a)} & \text{USART} & \text{(i)} & \text{8251} \\ \text{(b)} & \text{Micro...
2 votes
2 votes
2 answers
3
Sanjay Sharma asked May 3, 2016
3,828 views
Suppose that the given application is run on a 64-processor machine and that 70 percent of the application can be parallelized. Then the expected performance improvement ...