Browse Source

+ encode the end_function dummy instruction

Nikolay Nikolov 3 years ago
parent
commit
079e5ae151
1 changed files with 4 additions and 0 deletions
  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;