diff --git a/multicycle cpu/Untitled.asm b/multicycle cpu/Untitled.asm new file mode 100644 index 0000000..9efbc74 --- /dev/null +++ b/multicycle cpu/Untitled.asm @@ -0,0 +1,7 @@ +.var num 0 +ldbi 1 +main: +lda num +add +str num +jmp main \ No newline at end of file diff --git a/multicycle cpu/Untitled.code b/multicycle cpu/Untitled.code new file mode 100644 index 0000000..06741d5 --- /dev/null +++ b/multicycle cpu/Untitled.code @@ -0,0 +1,12 @@ +v2.0 raw +03 +01 +00 +0a +04 +00 +0a +0a +0b +02 +00 diff --git a/multicycle cpu/cpu.circ b/multicycle cpu/cpu.circ index c9e2a45..0a84659 100644 --- a/multicycle cpu/cpu.circ +++ b/multicycle cpu/cpu.circ @@ -14,9 +14,12 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + - + + @@ -28,9 +31,12 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + - - + + @@ -115,10 +121,10 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - + + + + @@ -160,14 +166,16 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + + + @@ -177,7 +185,9 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + @@ -190,12 +200,14 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + @@ -223,6 +235,7 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + @@ -238,6 +251,7 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + @@ -249,7 +263,6 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - @@ -260,16 +273,13 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - @@ -278,8 +288,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + - @@ -291,11 +301,11 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -311,6 +321,7 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + @@ -323,14 +334,13 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + - - @@ -342,10 +352,11 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + - + @@ -363,12 +374,14 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + @@ -376,8 +389,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -397,8 +410,10 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + @@ -408,20 +423,22 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + + + + - @@ -429,6 +446,7 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + @@ -437,23 +455,28 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + - @@ -469,7 +492,6 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - @@ -477,21 +499,23 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - + + + @@ -504,9 +528,11 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + @@ -519,70 +545,11 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -590,77 +557,123 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + + + + + + + + - - - - + + - - - - - - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - + + - + - - + + - + + + - + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -668,142 +681,254 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - - - + + - - - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + - - + + + + - - - - - - + + + - - - - - - - + + - - - + + + + - - - + + - - - - - + + + + + + + - - - - - - - + + + + + + - + + + + + + + + + + + + + + - - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - @@ -811,12 +936,13 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - + - - + + + @@ -843,7 +969,9 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + @@ -855,6 +983,7 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + @@ -879,12 +1008,14 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + @@ -895,6 +1026,7 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + @@ -925,144 +1057,78 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + - + + + + + - - - - - - - - + + - - - - - - - - - - - - - - - - - - + + - - - - - + + + + - + - - - - - + + + + + + + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - - + + - + + + + + - + @@ -1071,59 +1137,142 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + - - - + + + - - + + + - - - - - - - + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + + @@ -1222,43 +1371,9 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -1266,18 +1381,42 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + + + + + + - + - + + + + + + + + + + + + + + @@ -1285,22 +1424,16 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - + + + - @@ -1310,18 +1443,34 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - + + + + + + + + - - + + + + + + + + + + + @@ -1434,6 +1583,14 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + + + @@ -1441,41 +1598,21 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - + + + @@ -1484,6 +1621,33 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1494,20 +1658,9 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - - + - + @@ -1516,12 +1669,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - + + @@ -1567,54 +1716,11 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1626,6 +1732,49 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1672,8 +1821,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -1686,8 +1835,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -1706,8 +1855,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -1762,9 +1911,9 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -1799,8 +1948,8 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + @@ -1808,10 +1957,10 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - - + + @@ -1819,33 +1968,29 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). - + - + - - - - - - - + + + - - + + + + + + - + - - - - - + @@ -1857,45 +2002,49 @@ This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/). + + + + + + + + - - - - - + - + - - - - - - - - + - + + + + + - + + + +