diff options
author | Geno <48206120+gabrielegenovese@users.noreply.github.com> | 2024-07-11 12:57:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 12:57:56 +0200 |
commit | b50c7e99603e9f85d82d700d62c16c4fcef88715 (patch) | |
tree | 5052206f06e0426a43599cb236652614db04d22e /src/svm/AssemblyClass.java | |
parent | f0692ff5f9e39cbd1c203e9d5abebf55a3d0f6fc (diff) |
Code generation (#20)
Co-authored-by: geno <gabrigeno@gmail>
Co-authored-by: Santo Cariotti <santo@dcariotti.me>
Diffstat (limited to 'src/svm/AssemblyClass.java')
-rw-r--r-- | src/svm/AssemblyClass.java | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/svm/AssemblyClass.java b/src/svm/AssemblyClass.java new file mode 100644 index 0000000..219c748 --- /dev/null +++ b/src/svm/AssemblyClass.java @@ -0,0 +1,74 @@ +package svm ; + +public class AssemblyClass { + private int code; + private String arg1; + private String arg2; + private String arg3; + + public AssemblyClass(int _code, String _arg1, String _arg2, String _arg3) { + code = _code; + arg1 = _arg1; + arg2 = _arg2; + arg3 = _arg3; + } + + public int getCode() { + return code; + } + + public void setCode(int _code) { + code = _code; + } + /* + AssemblyClass assemblyClass(String o) { + this.operation = o; + return this; + } + + AssemblyClass assemblyClass(String o, String a1) { + this.operation = o; + this.arg1 = a1; + return this; + } + + AssemblyClass assemblyClass(String o, String a1, String a2) { + this.operation = o; + this.arg1 = a1; + this.arg2 = a2; + return this; + } + + AssemblyClass AssemblyClass(String o, String a1, String a2, String a3) { + this.operation = o; + this.arg1 = a1; + this.arg2 = a2; + this.arg3 = a3; + return this; + } +*/ + +// public String getOperation() { +// return operation; +// } + + public String getArg1() { + return arg1; + } + + public void setArg1(String _arg1) { + arg1 = _arg1; + } + + public String getArg2() { + return arg2; + } + + public String getArg3() { + return arg3; + } + + public void setArg3(String _arg3) { + arg3 = _arg3; + } +}
\ No newline at end of file |