new version
authorTobias Girstmair <tobi@isticktoit.net>
Thu, 4 Mar 2021 22:16:27 +0000 (23:16 +0100)
committerTobias Girstmair <tobi@isticktoit.net>
Thu, 4 Mar 2021 22:16:27 +0000 (23:16 +0100)
bsv.c

diff --git a/bsv.c b/bsv.c
index 42dfc41b9b0dca7b5dc1f13285146c9ecbe86923..5d3322083395242495f9aaf71b636c2b598c2aae 100644 (file)
--- a/bsv.c
+++ b/bsv.c
@@ -63,13 +63,13 @@ void g(void){
        u8 t  = acc; // note input (as returned by idxm)
        for (u8 loop = 0; loop < 8; loop++) {
                SR      (t)
-               if (flag_c) {
+               if (!flag_c) // skip if carry set
+               goto skip;
                        MOV     (acc, i0)
                        ADD     (a1, acc)
                        MOV     (acc, i1)
                        ADDC    (a2, acc)
-               }
-               SR      (a2)
+       skip:   SR      (a2)
                SRC     (a1)
        }
        acc = a1;
Imprint / Impressum