diff options
| author | Julian Blake Kongslie | 2021-04-04 14:53:31 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-04-04 14:53:31 -0700 |
| commit | 3b1e7cfbd6ef2e520702a90c4d0ac8e102f19d9a (patch) | |
| tree | 6430b583e0013e2f0812b7285cb3ead6633243ec /asm.rb | |
| parent | Very fancy improved Fibonacci machine, with HDL convert-to-ASCII functionality (diff) | |
| download | noncpu-3b1e7cfbd6ef2e520702a90c4d0ac8e102f19d9a.tar.xz | |
Add indirect memory operations.
Diffstat (limited to 'asm.rb')
| -rwxr-xr-x | asm.rb | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -1,6 +1,7 @@ | |||
| 1 | #!/usr/bin/ruby -w | 1 | #!/usr/bin/ruby -w |
| 2 | 2 | ||
| 3 | OPCODES = { | 3 | OPCODES = { |
| 4 | "i" => 0x080, | ||
| 4 | "acc=" => 0x000, | 5 | "acc=" => 0x000, |
| 5 | "ladd" => 0x100, | 6 | "ladd" => 0x100, |
| 6 | "store" => 0x200, | 7 | "store" => 0x200, |
