32 bit - how to allocate memory to store register number? -
i learned register field specify 1 out of 64 registers takes 6 bits.
since 64 = 26
but don't have consider right bit ?, 20, in case require 7 bits specify 1 out of 64 registers..
if there 1 possible value, need no bits @ all. if have 1 bit, has 2 possible values.
so if there 1 register, no bits needed @ select it. if there 2 registers, you'd need 1 bit -- 0 in bit select 1 register, 1 other.
continuing, if have 2 bits, have 4 possible values. if have 3 bits, have 8 possible values. going up, 6 bits has sixty-four possible values, that's sufficient chose 1 of sixty-four registers.
Comments
Post a Comment