new version
authorTobias Girstmair <t@thi3nkpad.lan>
Sat, 17 Nov 2018 19:44:48 +0000 (20:44 +0100)
committerTobias Girstmair <t@thi3nkpad.lan>
Sat, 17 Nov 2018 19:44:48 +0000 (20:44 +0100)
foo.c

diff --git a/foo.c b/foo.c
index dcf47f4..c9856b9 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -93,7 +93,6 @@ void g(void) {
        t = a1;
        #undef a0
        
-       t &= 0x1e; //hint -- TODO: breaks without!?
        RET //TODO: replace CALL/RET with IJMP?
 };
 
@@ -129,6 +128,7 @@ int main(void) {
                MOV     (t, n)
                RCALL   g();
                SWAP    (t)
+               ANDI    (t, 1)
                MOV     (acc, t)
 
                //voice 2:
Imprint / Impressum