Native Unsafe:: methods, main loading, stuff!

This commit is contained in:
vegowotenks 2024-11-19 15:37:28 +01:00
parent 90e244c964
commit fba596ce5a
8 changed files with 242 additions and 22 deletions

View file

@ -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