Permalink
Browse files

Fixed bug in jump logic; Project 05 done

  • Loading branch information...
taw committed Oct 7, 2012
1 parent e335eb2 commit 1432f20ae1ba4a1ed18187636b9f311908191482
Showing with 69 additions and 2 deletions.
  1. +65 −0 05/ComputerRect-external.out
  2. +2 −1 05/ComputerRect.out
  3. +2 −1 05/JumpLogic.hdl
@@ -0,0 +1,65 @@
+| time |
+| 0 |
+| 1 |
+| 2 |
+| 3 |
+| 4 |
+| 5 |
+| 6 |
+| 7 |
+| 8 |
+| 9 |
+| 10 |
+| 11 |
+| 12 |
+| 13 |
+| 14 |
+| 15 |
+| 16 |
+| 17 |
+| 18 |
+| 19 |
+| 20 |
+| 21 |
+| 22 |
+| 23 |
+| 24 |
+| 25 |
+| 26 |
+| 27 |
+| 28 |
+| 29 |
+| 30 |
+| 31 |
+| 32 |
+| 33 |
+| 34 |
+| 35 |
+| 36 |
+| 37 |
+| 38 |
+| 39 |
+| 40 |
+| 41 |
+| 42 |
+| 43 |
+| 44 |
+| 45 |
+| 46 |
+| 47 |
+| 48 |
+| 49 |
+| 50 |
+| 51 |
+| 52 |
+| 53 |
+| 54 |
+| 55 |
+| 56 |
+| 57 |
+| 58 |
+| 59 |
+| 60 |
+| 61 |
+| 62 |
+| 63 |
View
@@ -61,4 +61,5 @@
| 59 | 16 | 16512 | 20| 4 | 0 | 0 |
| 60 | 16 | 0 | 21| 4 | 0 | 0 |
| 61 | 10 | 0 | 22| 4 | 0 | 0 |
-| 62 | 10 | 0 | 10| 4 | 0 | 0 |
+| 62 | 10 | 0 | 23| 4 | 0 | 0 |
+| 63 | 23 | 0 | 24| 4 | 0 | 0 |
View
@@ -5,7 +5,8 @@ CHIP JumpLogic {
OUT out;
PARTS:
- Not(in=ng,out=pos);
+ Or(a=ng,b=zr,out=zeroneg);
+ Not(in=zeroneg,out=pos);
And(a=ng,b=j[2],out=jneg);
And(a=zr,b=j[1],out=jzero);

0 comments on commit 1432f20

Please sign in to comment.