aboutsummaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-02-11 04:52:57 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-02-11 04:52:57 +0100
commitc7b8c6dcac0d419e696b982baea05a6c31bda79c (patch)
treed07399d546ec2490aaadc9f33e55a5f9a0068bd4 /parse.go
parentbd1bde3d29dadfc74dac5044452352fb1a8a77b5 (diff)
...
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/parse.go b/parse.go
index aee3252..14180bd 100644
--- a/parse.go
+++ b/parse.go
@@ -28,7 +28,6 @@ type Instruction interface {
// Lit is a literal
//
// 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-// | | | | | | | | | | | | | | | |
// | `-------------------------------------------- value
// `----------------------------------------------- 1
//
@@ -42,7 +41,6 @@ func (v Lit) compile() uint16 { return v.value() | (1 << 15) }
// Jump is an unconditional branch
//
// 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-// | | | | | | | | | | | | | | | |
// | | | `-------------------------------------- target
// `----------------------------------------------- 0 0 0
//
@@ -56,7 +54,6 @@ func (v Jump) compile() uint16 { return v.value() }
// Cond is a conditional branch
//
// 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-// | | | | | | | | | | | | | | | |
// | | | `-------------------------------------- target
// `----------------------------------------------- 0 0 1
//
@@ -70,7 +67,6 @@ func (v Cond) compile() uint16 { return v.value() | (1 << 13) }
// Call procedure
//
// 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-// | | | | | | | | | | | | | | | |
// | | | `-------------------------------------- target
// `----------------------------------------------- 0 1 0
//
@@ -84,7 +80,6 @@ func (v Call) compile() uint16 { return v.value() | (2 << 13) }
// ALU instruction
//
// 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
-// | | | | | | | | | | | | | | | |
// | | | | | | | | | | | | | | `----- dstack ±
// | | | | | | | | | | | | `----------- rstack ±
// | | | | | | | | | | | `-------------- unused