summaryrefslogtreecommitdiff
path: root/asm.rb
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-04-05 13:32:41 -0700
committerJulian Blake Kongslie2021-04-05 13:32:41 -0700
commit8c0b7ea39d57cb6c80cf66207291837d95c71940 (patch)
tree2f9403a5a97b78e820893064d01f6591afb96d5f /asm.rb
parentUse the assembler for allocating static storage in the Fib program. (diff)
downloadnoncpu-8c0b7ea39d57cb6c80cf66207291837d95c71940.tar.xz
Change the null byte from no-op to halt.
Diffstat (limited to '')
-rwxr-xr-xasm.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm.rb b/asm.rb
index 686f9c1..c94ecf7 100755
--- a/asm.rb
+++ b/asm.rb
@@ -12,7 +12,7 @@ OPCODES = {
12 "++acc" => 0x002, 12 "++acc" => 0x002,
13 "--acc" => 0x004, 13 "--acc" => 0x004,
14 "tx" => 0x040, 14 "tx" => 0x040,
15 "halt" => 0x080, 15 "halt" => 0x000,
16 } 16 }
17 17
18Line = Struct.new(:opcode, :refs, :code) 18Line = Struct.new(:opcode, :refs, :code)