Login  Register

Re: ALU_Worksheet functions and Opcodes

Posted by cadet1620 on Mar 24, 2012; 12:50pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/ALU-Worksheet-functions-and-Opcodes-tp3853248p3853757.html

linuxford wrote
Are these bit patterns (binary pattern of the 6 bits) called the "Opcodes" for the Hack computer? What would they be called in a real computer system?
"Opcode" usually means the part of an instruction that defines the overall operation of that instruction. I think I would also include the 'a' bit of the c-instructions in their opcode. Take a look at section 6.2.2 to see the Hack computer instruction format.

For example, here's what the modern Intel processor instructions look like:

Intel instruction format

--Mark