small update
authorMart Lubbers <mart@martlubbers.net>
Thu, 11 May 2017 19:13:44 +0000 (21:13 +0200)
committerMart Lubbers <mart@martlubbers.net>
Thu, 11 May 2017 19:13:44 +0000 (21:13 +0200)
client/Makefile
client/interpret.c
mTaskInterpret.dcl

index 0bf9b51..91d9e87 100644 (file)
@@ -1,6 +1,6 @@
 all:
        make -C nodemcu
-       make -C stm32
+       #make -C stm32
        make -C linux
 
 clean:
index 0f65888..e5907cf 100644 (file)
@@ -16,7 +16,7 @@
 
 #define f16(p) program[pc]*265+program[pc+1]
 
-uint8_t stack[STACKSIZE] = {0};
+uint16_t stack[STACKSIZE] = {0};
 
 void run_task(struct task *t)
 {
@@ -164,7 +164,7 @@ void run_task(struct task *t)
 #endif
                case BCRETURN: trace("Return");
                        pc = plen;
-                       t = stack[sp-1];
+                       t->value = (uint16_t) stack[sp-1];
                        break;
                default:
                        trace("unrecognized");
index 8f4bd40..29e1fb9 100644 (file)
@@ -67,6 +67,7 @@ decode :: String -> MTaskMSGRecv
        //Binary Bool ops
        | BCAnd
        | BCOr
+       //Binary ops
        | BCEq
        | BCNeq
        | BCLes