Documentation ¶
Overview ¶
Package cpu implements structs and functions for representing and operating the virtual CPU.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct { // Mem is the main memory device used by the CPU. Mem *mem.RAM // VGA is the main video device used by the CPU. VGA *vga.VGA // Regs maps numbers to regsiter values. Regs map[uint16]uint16 }
CPU is a basic implementation of a CPU.
Click to show internal directories.
Click to hide internal directories.