587 views

1 Answer

0 votes
0 votes

5 bits required to specify 32 registers for register operand. So, 2 register operands 10 bits. 6 (⌈log249⌉) bits required for opcode(since 49 instructions). So (10 + 6 = ) 16 bits required. So left no. of bits = 24 - 16 = 8 to represent immediate operand.

As the operand is signed integer, we can represent -2to 2- 1. So, the max value will be -27 = -128.

Related questions

0 votes
0 votes
1 answer
1
superask asked Jan 24, 2017
607 views
0 votes
0 votes
0 answers
3
pream sagar asked Jan 23, 2019
527 views
0 votes
0 votes
0 answers
4
pream sagar asked Jan 23, 2019
647 views
Consider the system which has virtual address of 36 bits and physical address of 30 bits and page size of 8KB, page table entry contain 1 valid bit, 2 protection bit and ...