From: Doni Pracner Date: Mon, 13 Jan 2014 22:24:03 +0000 (+0100) Subject: mjc2wsl - fields and memmory allocation scaffolds to read the instructions properly... X-Git-Tag: v0.1.4~25 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=46d034455b8af0cd19a8b4eaaf179d8ba8eb7a11;p=mjc2wsl.git mjc2wsl - fields and memmory allocation scaffolds to read the instructions properly; adequate error messages about not being actually processed --- diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index f27f255..c45de80 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -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