From 46170dd5b70588c9b1c6f4aa5aaea2649d8c74f0 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 20 Sep 2021 01:23:39 +0200 Subject: Began implementing the Instruction Pointer --- pkg/pointer/delta.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pkg/pointer/delta.go (limited to 'pkg/pointer/delta.go') diff --git a/pkg/pointer/delta.go b/pkg/pointer/delta.go new file mode 100644 index 0000000..0c3e074 --- /dev/null +++ b/pkg/pointer/delta.go @@ -0,0 +1,10 @@ +package pointer + +type Delta struct { + x int + y int +} + +func NewDelta(x, y int) *Delta { + return &Delta{x: x, y: y} +} -- cgit v1.2.3