gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - fields and memmory allocation scaffolds to read the instructions properly...
authorDoni Pracner <quinnuendo@gmail.com>
Mon, 13 Jan 2014 22:24:03 +0000 (23:24 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Mon, 13 Jan 2014 22:24:03 +0000 (23:24 +0100)
src/mjc2wsl.java

index f27f255ec77b2df8cb983f757cc8203b6c4e0dde..c45de80f96e614e9652247d1919598fca3245f79 100644 (file)
@@ -347,6 +347,13 @@ public class mjc2wsl{
                                break;
                        }
                        //TODO getfield, putfield
+                       case getfield:
+                       case putfield:{
+                                       prl(createComment("fields are not processed properly", C_ERR));
+                                       message("fields are not processed properly", M_ERR);
+                                       get2();
+                                       break;
+                       }
                        
                        case const_: {
                                prl(cmdToEStack(get4()));
@@ -398,6 +405,14 @@ public class mjc2wsl{
 
                        //TODO neg, shl, shr, inc
                        //TODO new_ newarray
+                       case new_ :
+                                       get();//needs a short, but a byte will be taken bellow as well
+                       case newarray :{
+                                       prl(createComment("memory allocation not processed properly", C_ERR));
+                                       message("memory allocation  not processed properly", M_ERR);
+                                       get();
+                                       break;
+                       }
                        //TODO aload, asstore, baload, bastore
                        //TODO arraylength
                        //TODO pop, dup, dup2
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner