![]() |
Page 4 | Page 6 | ![]() |
The opcode for the add/sub/logic instructions fits nicely into
5 bits, so there are 12 left for the two source registers and
the destination register. Neat (now you may begin to realise
why I chose 40 bits for my word size).
The shift instructions also have a source and destination register.
I have marked 5 bits to specify the amount of shift
but I think I would really need 6 (for 0-39 bits of shift).