Class: CPU

CPU()

The CPU of the trinary computer. This class contains the accumulator, flags register, and component modules of the CPU, which include the ALU, control unit, PAU, and DAU. TODO: Add modules and complete docs

Constructor

new CPU()

Create the CPU and its components. The CPU is composed of hardware registers, ALU, control unit, PAU, and DAU.
Source:

Classes

CPU

Methods

compute()

Computes the output of the CPU based on the control signals generated by control unit for the incoming signal. Depending on the instruction this may involve reading from or writing to memory, reading from or writing to the registers, or performing an ALU operation. The result of ALU operations may change the status register or accumulator or both.
Source: