瀏覽代碼

+ encode the end_function dummy instruction

Nikolay Nikolov 3 年之前
父節點
當前提交
079e5ae151
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/wasm32/aasmcpu.pas

+ 4 - 0
compiler/wasm32/aasmcpu.pas

@@ -548,6 +548,8 @@ implementation
                     internalerror(2021092011);
                 end;
             end;
+          a_end_function:
+            result:=0;
           else
             Writeln('Warning! Not implemented opcode, pass1: ', opcode);
         end;
@@ -955,6 +957,8 @@ implementation
                     internalerror(2021092011);
                 end;
             end;
+          a_end_function:
+            ;
           else
             Writeln('Warning! Not implemented opcode, pass2: ', opcode);
         end;