The Gateway to Computer Science Excellence
0 votes
79 views

Which signed representation has to be taken?

in CO and Architecture by Active (4.7k points)
edited by | 79 views

2 Answers

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 -27 to 27 - 1. So, the max value will be -27 = -128.

by Active (1.8k points)
0
Why you have taken 2's comp form of immediate.
0

Signed integers are stored in 2's complement. If you have doubt regarding signed integers, see this link.

http://kias.dyndns.org/comath/13.html

0 votes
by Boss (15.5k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,666 questions
56,155 answers
193,759 comments
93,733 users