retagged by
1,569 views
1 votes
1 votes

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

retagged by

1 Answer

Best answer
3 votes
3 votes

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

Related questions

0 votes
0 votes
1 answer
4