Began coding the interpreter (only manages the minimal example for now!)
This commit is contained in:
parent
6f70a7237b
commit
e3bc1251e8
4 changed files with 99 additions and 0 deletions
|
@ -12,6 +12,8 @@ type Pointer struct {
|
|||
// The Storage offset
|
||||
sox int
|
||||
soy int
|
||||
// The next element for the multi-"threaded" b98 interpreter
|
||||
Next *Pointer
|
||||
}
|
||||
|
||||
func NewPointer() *Pointer {
|
||||
|
@ -25,3 +27,7 @@ func (p Pointer) Split() *Pointer {
|
|||
func (p *Pointer) Step(f field.Field) {
|
||||
p.x, p.y = f.Step(p.x, p.y, p.dx, p.dy)
|
||||
}
|
||||
|
||||
func (p Pointer) Get(f field.Field) int {
|
||||
return f.Get(p.x, p.y)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue