From 242996d855ce3f6d7bcc6b33b418d0f7573b08f4 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Wed, 20 Sep 2023 07:34:32 +0200 Subject: [PATCH] solve bug in jump instruction --- circuit/BFPU.circ | 43 ++++++++++++++++++++++--------------------- circuit/SampleProgram | 6 +++--- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/circuit/BFPU.circ b/circuit/BFPU.circ index f525324..8a46fd4 100644 --- a/circuit/BFPU.circ +++ b/circuit/BFPU.circ @@ -238,9 +238,8 @@ - + - @@ -290,7 +289,8 @@ addr/data: 8 3 -6 31*0 6 15*0 7 15*0 7 +2 3 2 6 5 3 7 25*0 +6 15*0 7 15*0 7 @@ -310,33 +310,33 @@ - + - + - + - + - + - + - + - + @@ -344,33 +344,33 @@ - + - + - + - + - + - + - + - + - + @@ -514,7 +514,8 @@ - + + diff --git a/circuit/SampleProgram b/circuit/SampleProgram index c62ec75..ed3422e 100644 --- a/circuit/SampleProgram +++ b/circuit/SampleProgram @@ -1,7 +1,7 @@ v3.0 hex words addressed -00: 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -20: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -40: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +00: 2 2 2 6 5 3 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +20: 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +40: 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 60: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 80: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0