Machine Instruction Code NOT

In the basic machine cycle the CAPC1 processor performs Fetch Operation in the first 4 subcyles, C0 to C3. At the last subcycle C3 of Operation, a machine instruction in the form of 16 bit word is copied into the Instruction Register which is the center piece of the Execution Unit of CAPC1. The OP(eration) code, codeBit 15, 14, 13, and 12 of the machine instruction in IR is decoded immediately to identify and execute the instruction in the last 4 subcycles, C4 to C7. Each output pin from Machine Instruction Decoder represents the corresponding machine instruction and be wired to a set of registers by control lines derived from the clock subcycles C4 to C7.

We now look at the wiring of machine instruction NOT. The upper 4 bit is "0101", the OP(eration) code. This instruction returns the negation of Greg into Greg. The lower 12 bit Operand is ignored.

Assembly LanguageMachine Language
NOT [000] 0101 0000 0000 0000
Description
Negate the contents of Greg register bit by bit
and return the value back to Greg register.
Wiring of Instruction NOT
SubcycleSimple HDLCircuit
C4 Greg -> X C4
C5 IR[11..0] -> MAR C5
C6 MBR -> Y C6
C7 Send NOT
Z -> Greg
C7

Note: To reduce the number of control lines, we use the wiring of general arithmetic instructions. The subcycles C5 and C6 are redundant.