From 46d034455b8af0cd19a8b4eaaf179d8ba8eb7a11 Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Mon, 13 Jan 2014 23:24:03 +0100 Subject: [PATCH] mjc2wsl - fields and memmory allocation scaffolds to read the instructions properly; adequate error messages about not being actually processed --- src/mjc2wsl.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.25.1