From 309dcb5a029d9b40c72fa8bc01a3009389b66e8e Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 21 Sep 2021 00:27:57 +0200 Subject: Continued implementing the Instruction Pointer --- pkg/pointer/pointer.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/pointer/pointer.go') diff --git a/pkg/pointer/pointer.go b/pkg/pointer/pointer.go index 5b4b860..8f2a299 100644 --- a/pkg/pointer/pointer.go +++ b/pkg/pointer/pointer.go @@ -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 } -- cgit v1.2.3