aboutsummaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-05-26 10:19:39 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-05-26 10:19:39 +0200
commiteec661e44ac859ba651aa2f8cbc9fa6f7ba88220 (patch)
treee8a7ccdce040debeeade8d19923acd222a328395 /parse.go
parent03b912a7db63d213cbfd9a1cb35535759632642b (diff)
...
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.go b/parse.go
index f94e861..c6ab09e 100644
--- a/parse.go
+++ b/parse.go
@@ -46,7 +46,7 @@ type Instruction interface {
type Lit uint16
-func newLit(v uint16) Lit { return Lit(v & 0x7fff) }
+func newLit(v uint16) Lit { return Lit(v &^ uint16(1<<15)) }
func (v Lit) String() string { return fmt.Sprintf("LIT %0.4X", uint16(v)) }
func (v Lit) isInstruction() {}