Documentation ¶
Overview ¶
Package spec contains constants and utility functions that depend on the spec of the VM's instruction set, architecture, etc.
Index ¶
Constants ¶
View Source
const ( // Word defines word size in bits Word = 16 // NRegs defines the number of registers NRegs = 8 Add = 0 Addi = 1 Nand = 2 Lui = 3 Sw = 4 Lw = 5 Beq = 6 Jalr = 7 Ext = 7 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.