mirror of
https://github.com/FranzHaidnor/haidnorJVM.git
synced 2026-03-13 21:43:42 +08:00
update FSTORE.java ISTORE.java
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
package haidnor.jvm;
|
||||
|
||||
import org.apache.commons.cli.CommandLine;
|
||||
import org.apache.commons.cli.CommandLineParser;
|
||||
import org.apache.commons.cli.DefaultParser;
|
||||
import org.apache.commons.cli.Option;
|
||||
import org.apache.commons.cli.OptionGroup;
|
||||
import org.apache.commons.cli.Options;
|
||||
|
||||
import haidnor.jvm.classloader.ClassLoader;
|
||||
import haidnor.jvm.core.JavaExecutionEngine;
|
||||
import haidnor.jvm.rtda.heap.Klass;
|
||||
@@ -9,7 +16,6 @@ import haidnor.jvm.runtime.JvmThread;
|
||||
import haidnor.jvm.util.JavaClassUtil;
|
||||
import haidnor.jvm.util.JvmThreadHolder;
|
||||
import lombok.SneakyThrows;
|
||||
import org.apache.commons.cli.*;
|
||||
|
||||
/**
|
||||
* @author wang xiang
|
||||
|
||||
@@ -11,7 +11,7 @@ public class FSTORE extends Instruction {
|
||||
|
||||
public FSTORE(CodeStream codeStream) {
|
||||
super(codeStream);
|
||||
this.index = codeStream.readUnsignedShort(this);
|
||||
this.index = codeStream.readUnsignedByte(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -11,7 +11,7 @@ public class ISTORE extends Instruction {
|
||||
|
||||
public ISTORE(CodeStream codeStream) {
|
||||
super(codeStream);
|
||||
this.index = codeStream.readUnsignedShort(this);
|
||||
this.index = codeStream.readUnsignedByte(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user