in CO and Architecture retagged by
1,559 views
1 vote
1 vote

What should I assume as the size of HALT instruction ? HALT instruction comes under which type of instruction

in CO and Architecture retagged by
by
1.6k views

4 Comments

@deepanshu I don't have any reference for my answer, I have just read this stuff so I know it.
Posting it as answer would not be appropriate.
0
0
I1: 3000
I2: 3008
I3: 3012
I4: 3016
I5: 3024
I6: 3028
I7: 3030

So when interrupt occurs at I6, program counter contains 3030 right? so return address should be 3030 correct?
0
0
yes i too think 3030 is correct!
0
0

1 Answer

3 votes
3 votes
Best answer

I1: 3000 - 3007 // since it is a memory transfer op.

I2: 3008 - 3011// it is an ALU oper.
I3: 3012 - 3015 // it is also an ALU por.
I4: 3016 - 3023 // memory transfer opr.
I5: 3024 - 3027 // ALU oper.
I6: 3028 - 3029 // branch operation
I7: 3030-3033 // ALU Opr.

Halt is an un-conditional branch to the same instruction, i.e, It is a branch instruction.

further more irrespective of whether interrupt occurs during execution of instruction or after execution of instruction next address instruction will be saved to the stack:

So 3030 will be stored in the stack.

reference:  https://gateoverflow.in/1058/gate2004-63

selected by

4 Comments

yes,change it
0
0

@Gate Fever Correct now?

0
0
yes
0
0

Related questions