new version
authorTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 18:20:11 +0000 (19:20 +0100)
committerTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 18:20:11 +0000 (19:20 +0100)
foo.c

diff --git a/foo.c b/foo.c
index 7161542..be8d765 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -15,7 +15,7 @@ u8 x;
 u8 t;
 u8 o;
 u8 _;
-#define Mh o //mod3 vars
+#define Mh x //mod3 vars
 #define Ml t // -"-
 //http://homepage.divms.uiowa.edu/~jones/bcd/mod.shtml
 void mod3(void) {
@@ -106,7 +106,7 @@ int main(void) {
                MOV     (acc, t)
 
                //voice 2:
-               #define tmp o
+               #define tmp _
                MOV     (tmp, i2)
                LSL     (tmp)
                LSL     (tmp)
@@ -156,7 +156,7 @@ int main(void) {
                ANDI    (t, 3)
                MOV     (x, s)
                INC     (x)
-               #define tmp o
+               #define tmp _
                MOV     (tmp, x)
                LSR     (tmp)
                LSR     (tmp)
@@ -206,7 +206,7 @@ int main(void) {
                ANDI    (t, 3)
                MOV     (x, s)
                INC     (x)
-               #define tmp o
+               #define tmp _
                 MOV    (tmp, x)
                LSR     (tmp)
                 ADD    (tmp, x)
Imprint / Impressum