So in this class we are dealing a lot with the LC-3 assembly language. For the problems on one of our homework assignments we are given this:
"Suppose we have 16 general-purpose registers, 60 opcodes, an instruction size of 20 bits, and 64K bytes of memory space available. a) If we want a LD DR, offset instruction, how many bits are available for the offset?"
How would I go about finding this? In class, we work with LC-3 which I already know has an instruction size of 16 bits, where the opcodes are 4 bits, the memory locations are 3 bits (R0 - R7), and the offset can be figured out. We never learned how to calculate these on our own though... So I have no idea how to figure out how long the opcodes for the instructions will be in this language that has an instruction size of 20 bits, or even how many bits the memory locations are. Can anyone please help?