Implemented Exception Throwing

This commit is contained in:
vegowotenks 2024-11-12 14:34:42 +01:00
parent f5428c79b2
commit 8e5b6bb2b8
5 changed files with 224 additions and 9 deletions

View file

@ -102,6 +102,7 @@ impl Bytecode {
0x6D => (Instruction::DivideLong(), 1),
0x6E => (Instruction::DivideFloat(), 1),
0x70 => (Instruction::ModuloInt(), 1),
0x74 => (Instruction::NegateInt(), 1),
0x75 => (Instruction::NegateLong(), 1),
0x78 => (Instruction::ArithmeticShiftIntLeft(), 1),
@ -386,6 +387,7 @@ pub enum Instruction {
DivideLong() = 0x6D, // long division
DivideFloat() = 0x6E, // float division
ModuloInt() = 0x70, // modulo
NegateInt() = 0x74, // arithmetic negation
NegateLong() = 0x75, // arithmetic negation
ArithmeticShiftIntLeft() = 0x78, // shift int left, preserve sign