in CO and Architecture
426 views
0 votes
0 votes
Encode the instruction sub r1, r2, 3

 (a) 00001 0 0001 0010 00 0000 0000 0000 0011

 (b)00001 1 0001 0010 00 0000 0000 0000 0011

(c) 00011 1 0001 0010 00 0000 0000 0000 0111

 (d)None of the above
in CO and Architecture
426 views

4 Comments

with out knowing the SUB instruction implement ( how many instructions are there in your Instruction Set Architecture and etc..), and how many registers you have.. we can't answer this type of questions
1
1
As @Shaik pointed it out, this is specific to the Instruction Set Architecture of the processor. Without knowing the opcodes for SUB and the memory location of R1 and R2, it is not possible.
0
0
in question  only above information is given.
0
0
If that's the case, the question is incorrect.
0
0

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
4
rsansiya111 asked in CO and Architecture Dec 8, 2021
199 views
rsansiya111 asked in CO and Architecture Dec 8, 2021
199 views