summaryrefslogtreecommitdiff
path: root/asm.rb
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-04-04 12:27:04 -0700
committerJulian Blake Kongslie2021-04-04 12:27:04 -0700
commit6568b149af1cd4d32dee6e566359f48e38386428 (patch)
tree7a8b8acb089966871e7a6dd5ff32fecc0dee9cda /asm.rb
parentStreamlined the Fibonacci program somewhat. (diff)
downloadnoncpu-6568b149af1cd4d32dee6e566359f48e38386428.tar.xz
Change assembler input to make it idempotent.
Diffstat (limited to 'asm.rb')
-rwxr-xr-xasm.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/asm.rb b/asm.rb
index 9ba1e04..80bbd67 100755
--- a/asm.rb
+++ b/asm.rb
@@ -22,6 +22,7 @@ $labels = {}
22$code = [] 22$code = []
23ARGF.each_line() do | line | 23ARGF.each_line() do | line |
24 line.chomp!() 24 line.chomp!()
25 line.sub!(/^.*\/\/\s*/, "")
25 next unless line =~ /\S/ 26 next unless line =~ /\S/
26 op = 0x000 27 op = 0x000
27 refs = [] 28 refs = []