I dont know, I changed things
This commit is contained in:
parent
43ceaa95bb
commit
3fd30b80b6
5 changed files with 98 additions and 10 deletions
|
@ -57,6 +57,7 @@ impl Bytecode {
|
|||
0x32 => (Instruction::ArrayElement(), 1),
|
||||
0x33 => (Instruction::LoadFromBArray(), 1),
|
||||
0x36 => (Instruction::StoreLocalInt(self.bytes[offset+1]), 2),
|
||||
0x37 => (Instruction::StoreLocalLong(self.bytes[offset+1]), 2),
|
||||
0x38 => (Instruction::StoreLocalFloat(self.bytes[offset+1]), 2),
|
||||
0x3A => (Instruction::StoreLocalReference(self.bytes[offset+1]), 2),
|
||||
0x3B => (Instruction::StoreLocalInt0(), 1),
|
||||
|
@ -68,6 +69,7 @@ impl Bytecode {
|
|||
0x4D => (Instruction::StoreLocalReference2(), 1),
|
||||
0x4E => (Instruction::StoreLocalReference3(), 1),
|
||||
|
||||
0x4F => (Instruction::StoreIntoIArray(), 1),
|
||||
0x53 => (Instruction::StoreIntoRArray(), 1),
|
||||
0x54 => (Instruction::StoreIntoBArray(), 1),
|
||||
0x55 => (Instruction::StoreIntoCArray(), 1),
|
||||
|
@ -311,6 +313,7 @@ pub enum Instruction {
|
|||
ArrayElement() = 0x32, // load element from array
|
||||
LoadFromBArray() = 0x33, // store into byte array
|
||||
StoreLocalInt(u8) = 0x36, // store into indexed local variable
|
||||
StoreLocalLong(u8) = 0x37, // store into indexed local variable
|
||||
StoreLocalFloat(u8) = 0x38, // store into indexed local variable
|
||||
StoreLocalReference(u8) = 0x3A, // store into indexed local variable
|
||||
StoreLocalInt0() = 0x3B, // store int into local variable
|
||||
|
@ -322,6 +325,7 @@ pub enum Instruction {
|
|||
StoreLocalReference2() = 0x4D, // store reference into local variable
|
||||
StoreLocalReference3() = 0x4E, // store reference into local variable
|
||||
|
||||
StoreIntoIArray() = 0x4F, // store value into integer array
|
||||
StoreIntoRArray() = 0x53, // store value into reference array
|
||||
StoreIntoBArray() = 0x54, // store value into byte or boolean array
|
||||
StoreIntoCArray() = 0x55, // store value into char array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue