Skip to content

Commit

Permalink
Level 32 fully working (w/ indirect mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
adumont committed Jun 2, 2018
1 parent 0b43e37 commit 7acbed5
Show file tree
Hide file tree
Showing 14 changed files with 2,298 additions and 378 deletions.
756 changes: 378 additions & 378 deletions logisim/hrmcpu.circ

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions logisim/prog/Year-32/INBOX.BIN
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
v2.0 raw
05 01 02 05 03 04
2 changes: 2 additions & 0 deletions logisim/prog/Year-32/MEMORY.BIN
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
v2.0 raw
02 01 04 02 03 04 01 02 01 04 03 02 01 02 00
21 changes: 21 additions & 0 deletions logisim/prog/Year-32/PROG
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
init:
COPYFROM 14
COPYTO 19
COPYTO 16
INBOX
COPYTO 15
nexttile:
COPYFROM [19]
JUMPZ outputcount
SUB 15
JUMPZ inccount
inctileaddr:
BUMP+ 19
JUMP nexttile
inccount:
BUMP+ 16
JUMP inctileaddr
outputcount:
COPYFROM 16
OUTBOX
JUMP init
2 changes: 2 additions & 0 deletions logisim/prog/Year-32/PROG.BIN
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
v2.0 raw
20 0e 30 13 30 10 00 30 0f 28 13 90 19 50 0f 90 15 60 13 80 09 60 10 80 11 20 10 10 80 00
21 changes: 21 additions & 0 deletions logisim/prog/Year-32/PROG.TXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
init:
00: 20 0e ; COPYFROM 14
02: 30 13 ; COPYTO 19
04: 30 10 ; COPYTO 16
06: 00 00 ; INBOX
07: 30 0f ; COPYTO 15
nexttile:
09: 28 13 ; COPYFROM [19]
0b: 90 19 ; JUMPZ outputcount
0d: 50 0f ; SUB 15
0f: 90 15 ; JUMPZ inccount
inctileaddr:
11: 60 13 ; BUMP+ 19
13: 80 09 ; JUMP nexttile
inccount:
15: 60 10 ; BUMP+ 16
17: 80 11 ; JUMP inctileaddr
outputcount:
19: 20 10 ; COPYFROM 16
1b: 10 00 ; OUTBOX
1c: 80 00 ; JUMP init
Binary file added logisim/prog/Year-32/assets/INBOX.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logisim/prog/Year-32/assets/MEMORY-start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logisim/prog/Year-32/assets/OUTBOX-end.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logisim/prog/Year-32/assets/OUTBOX-start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logisim/prog/Year-32/assets/PROG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7acbed5

Please sign in to comment.