From: Doni Pracner Date: Tue, 17 Jul 2018 21:39:21 +0000 (+0200) Subject: MJInput, move the properties file to the proper package X-Git-Tag: v1.0.0~7 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=882d424bd5b2c17dd7f6113580e0df165ab5482f;p=mjc2wsl.git MJInput, move the properties file to the proper package --- diff --git a/res/com/quemaster/transformations/mjc2wsl/mj-bytecodes.properties b/res/com/quemaster/transformations/mjc2wsl/mj-bytecodes.properties new file mode 100644 index 0000000..4cd2878 --- /dev/null +++ b/res/com/quemaster/transformations/mjc2wsl/mj-bytecodes.properties @@ -0,0 +1,57 @@ +1=load +2=load_0 +3=load_1 +4=load_2 +5=load_3 +6=store +7=store_0 +8=store_1 +9=store_2 +10=store_3 +11=getstatic +12=putstatic +13=getfield +14=putfield +15=const_0 +16=const_1 +17=const_2 +18=const_3 +19=const_4 +20=const_5 +21=const_m1 +22=const_ +23=add +24=sub +25=mul +26=div +27=rem +28=neg +29=shl +30=shr +31=inc +32=new_ +33=newarray +34=aload +35=astore +36=baload +37=bastore +38=arraylength +39=pop +40=dup +41=dup2 +42=jmp +43=jeq +44=jne +45=jlt +46=jle +47=jgt +48=jge +49=call +50=return_ +51=enter +52=exit +53=read +54=print +55=bread +56=bprint +57=trap \ No newline at end of file diff --git a/res/mj-bytecodes.properties b/res/mj-bytecodes.properties deleted file mode 100644 index 4cd2878..0000000 --- a/res/mj-bytecodes.properties +++ /dev/null @@ -1,57 +0,0 @@ -1=load -2=load_0 -3=load_1 -4=load_2 -5=load_3 -6=store -7=store_0 -8=store_1 -9=store_2 -10=store_3 -11=getstatic -12=putstatic -13=getfield -14=putfield -15=const_0 -16=const_1 -17=const_2 -18=const_3 -19=const_4 -20=const_5 -21=const_m1 -22=const_ -23=add -24=sub -25=mul -26=div -27=rem -28=neg -29=shl -30=shr -31=inc -32=new_ -33=newarray -34=aload -35=astore -36=baload -37=bastore -38=arraylength -39=pop -40=dup -41=dup2 -42=jmp -43=jeq -44=jne -45=jlt -46=jle -47=jgt -48=jge -49=call -50=return_ -51=enter -52=exit -53=read -54=print -55=bread -56=bprint -57=trap \ No newline at end of file diff --git a/src/com/quemaster/transformations/mjc2wsl/MicroJavaInput.java b/src/com/quemaster/transformations/mjc2wsl/MicroJavaInput.java index 15fed7a..678243d 100644 --- a/src/com/quemaster/transformations/mjc2wsl/MicroJavaInput.java +++ b/src/com/quemaster/transformations/mjc2wsl/MicroJavaInput.java @@ -1,7 +1,7 @@ package com.quemaster.transformations.mjc2wsl; /* - Copyright (C) 2014,2015 Doni Pracner + Copyright (C) 2014,2015,2018 Doni Pracner This file is part of mjc2wsl. @@ -26,7 +26,7 @@ import java.util.HashMap; public class MicroJavaInput { private HashMap opMap; - public String opCodeFile = "/mj-bytecodes.properties"; + public String opCodeFile = "mj-bytecodes.properties"; private InputStream mainIn; int counter = -1;