Documentation ¶
Index ¶
- Variables
- type ALU
- func (alu *ALU) ADD(a, b uint64) uint64
- func (alu *ALU) AND(a, b uint64) uint64
- func (alu *ALU) Carry() bool
- func (alu *ALU) Equal() bool
- func (alu *ALU) GreaterThan() bool
- func (alu *ALU) GreaterThanEqual() bool
- func (alu *ALU) LSL(a, b uint64) uint64
- func (alu *ALU) LSR(a, b uint64) uint64
- func (alu *ALU) LessThan() bool
- func (alu *ALU) LessThanEqual() bool
- func (alu *ALU) Negative() bool
- func (alu *ALU) NotEqual() bool
- func (alu *ALU) OR(a, b uint64) uint64
- func (alu *ALU) SUB(a, b uint64) uint64
- func (alu *ALU) XOR(a, b uint64) uint64
- func (alu *ALU) Zero() bool
- type VirtualMachine
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidFileDescriptor = fmt.Errorf("invalid file descriptor")
)
Functions ¶
This section is empty.
Types ¶
type ALU ¶
type ALU struct {
// contains filtered or unexported fields
}
func (*ALU) GreaterThan ¶
func (*ALU) GreaterThanEqual ¶
func (*ALU) LessThanEqual ¶
type VirtualMachine ¶
type VirtualMachine struct {
// contains filtered or unexported fields
}
func NewVirtualMachine ¶
func NewVirtualMachine(mem memory.Addressable, quiet bool) *VirtualMachine
func (*VirtualMachine) ExecuteInstruction ¶
func (v *VirtualMachine) ExecuteInstruction()
func (*VirtualMachine) Halt ¶
func (v *VirtualMachine) Halt()
func (*VirtualMachine) Halted ¶
func (v *VirtualMachine) Halted() bool
func (*VirtualMachine) InitStack ¶
func (v *VirtualMachine) InitStack(stackStartAddress uint64)
func (*VirtualMachine) Memory ¶
func (v *VirtualMachine) Memory() memory.Addressable
func (*VirtualMachine) PrintState ¶
func (v *VirtualMachine) PrintState()
Click to show internal directories.
Click to hide internal directories.