Continued implementing the Instruction Pointer
This commit is contained in:
parent
46170dd5b7
commit
309dcb5a02
4 changed files with 54 additions and 3 deletions
|
@ -6,13 +6,16 @@ type Pointer struct {
|
|||
x int
|
||||
y int
|
||||
delta *Delta
|
||||
// The Storage offset
|
||||
sox int
|
||||
soy int
|
||||
}
|
||||
|
||||
func NewPointer() *Pointer {
|
||||
return &Pointer{delta: NewDelta(1, 0)}
|
||||
}
|
||||
|
||||
func (p Pointer) ForkPointer() *Pointer {
|
||||
func (p Pointer) Split() *Pointer {
|
||||
return &p // p is already a copy
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue