summaryrefslogtreecommitdiff
path: root/asm.rb
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-04-04 14:53:31 -0700
committerJulian Blake Kongslie2021-04-04 14:53:31 -0700
commit3b1e7cfbd6ef2e520702a90c4d0ac8e102f19d9a (patch)
tree6430b583e0013e2f0812b7285cb3ead6633243ec /asm.rb
parentVery fancy improved Fibonacci machine, with HDL convert-to-ASCII functionality (diff)
downloadnoncpu-3b1e7cfbd6ef2e520702a90c4d0ac8e102f19d9a.tar.xz
Add indirect memory operations.
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 b883510..c3a0125 100755
--- a/asm.rb
+++ b/asm.rb
@@ -1,6 +1,7 @@
1#!/usr/bin/ruby -w 1#!/usr/bin/ruby -w
2 2
3OPCODES = { 3OPCODES = {
4 "i" => 0x080,
4 "acc=" => 0x000, 5 "acc=" => 0x000,
5 "ladd" => 0x100, 6 "ladd" => 0x100,
6 "store" => 0x200, 7 "store" => 0x200,