I'm trying to solve this exercise :
You will encode an Instruction Set for a processor with 32 registers (R0-R31). The arithmetic-logical instructions are in the form :
Ri<-Rj op Rk
and there are 22 bits available for their encoding .
Reading-Writing instructions are in the form :
Ri<-memory[Rj+offset] (i,j = 0...31)
Ri->memory[Rj+offset] (i,j = 0...31)
and there are 30 bits available for their encoding .
i) How many arithmetical-logical instructions can you encode ? ii) Calculate the offset's max length in bits .
I tried to find solutions , been searching for hours but didn't find anything. Any help would be awesome!