edited by
5,603 views

2 Answers

2 votes
2 votes

ADD Adds two registers and stores the result in a register.

ADD r1 r2 ,r3

ADDI is an I-type instruction. This instruction allows you to add the contents of a register to an immediate value (a constant) and store the result in a  register.

ADDI r1 r2 ,I  //here I is  immediate value

0 votes
0 votes
This question is meaningless. Because Assembly language is not uniform - it varies from architecture to architecture. Based on common convention "ADD" is doing addition and using direct addressing and "ADDI" is doing addition and using immediate operand. Such questions are not for GATE and for other exams like ISRO, 8085 assembly instructions are used.

Related questions

0 votes
0 votes
0 answers
4
kanakjyoti asked Sep 1, 2022
237 views
Disadvantages of using 2-address instruction in place of 1-address instructions is/are?More memory required for programLarger sized instructionsMore number of instruction...