Documentation
¶
Index ¶
Constants ¶
View Source
const ( DebugNone = DebugMode(iota) DebugInfo DebugVerbose )
View Source
const ( NOP = "nop" ACC = "acc" JMP = "jmp" ADD = "add" MUL = "mul" IN = "in" OUT = "out" NON_ZERO = "ifnz" ZERO = "ifz" LT = "lt" EQ = "eq" EOF = "eof" )
View Source
const ( ModePosition = ParameterMode(iota) ModeImmediate ModeRelative )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instruction ¶
type ParameterMode ¶
type ParameterMode int
type ProtoCode ¶
type ProtoCode struct { Name string Memory map[int]*Instruction Cursor int IgnoreNonAddressedMemory bool DebugMode DebugMode Acc int ExitCondition func(c *ProtoCode) bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.