5.2 INSTRUCTION FORMATS
We know that a machine instruction has an opcode and zero or more operands. We saw in Chapter 4 that MARIE had an instruction length of 16 bits and could have, at most, one operand. Encoding an instruction set can be done in a variety of ways. Architectures are differentiated from one another by the number of bits allowed per instruction (16, 32, and 64 are the most common), by the number of operands allowed per instruction, and by the types of instructions and data each can process. More specifically, instruction sets are differentiated by the following features:
Operand storage (data can be stored in a stack structure or in registers or both)
Number of explicit operands per instruction (zero, one, two, and three being ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access