Преглед на файлове

+ encode the end_function dummy instruction

Nikolay Nikolov преди 4 години
родител
ревизия
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;