Native Unsafe:: methods, main loading, stuff!
This commit is contained in:
parent
90e244c964
commit
fba596ce5a
8 changed files with 242 additions and 22 deletions
|
@ -119,6 +119,7 @@ impl Bytecode {
|
|||
|
||||
0x80 => (Instruction::OrInt(), 1),
|
||||
0x82 => (Instruction::XorInt(), 1),
|
||||
0x83 => (Instruction::XorLong(), 1),
|
||||
0x84 => (Instruction::IncrementLocalInt(self.bytes[offset+1], i8::from_be_bytes([self.bytes[offset+2]])), 3),
|
||||
0x85 => (Instruction::ConvertIntToLong(), 1),
|
||||
|
||||
|
@ -416,6 +417,7 @@ pub enum Instruction {
|
|||
|
||||
OrInt() = 0x80, // value, value => or
|
||||
XorInt() = 0x82, // value, value => xor
|
||||
XorLong() = 0x83, // value, value => xor
|
||||
IncrementLocalInt(u8, i8) = 0x84, // increment local variable by constant i8
|
||||
ConvertIntToLong() = 0x85, // convert int on stack to long
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue