My dream CPU
IV. Compressed instructions
Let calc how many bits are needed for one instruction. A instruction contain:
This are 20 bits for one instruction. This are approximate calculations. We should reserve some bits for future improvements. Could be add some more units and instructions. In 32 bits release the register is fast full, but in 64 bits release we have place for 2 instruction codes in one 64 bits word. In 64 bit release LSB will contain one instruction code MSB another instruction code. Next 2 memory addresses contain instruction operands for this instructions, as shown on picture.
Fig. 8 Compressed instruction.
This is double instruction or compresses instruction.