diff --git a/dust-lang/src/compiler/mod.rs b/dust-lang/src/compiler/mod.rs index 4fc2dd5..371380b 100644 --- a/dust-lang/src/compiler/mod.rs +++ b/dust-lang/src/compiler/mod.rs @@ -697,7 +697,7 @@ impl<'src> Compiler<'src> { ) -> Result<(Operand, bool), CompileError> { let (argument, push_back) = match instruction.operation() { Operation::LOAD_CONSTANT => (Operand::Constant(instruction.b_field()), false), - Operation::POINT => (Operand::Register(instruction.a_field()), false), + Operation::POINT => (instruction.b_as_operand(), false), Operation::LOAD_BOOLEAN | Operation::LOAD_LIST | Operation::LOAD_SELF diff --git a/dust-lang/src/vm/action.rs b/dust-lang/src/vm/action.rs index fd01a93..52d4307 100644 --- a/dust-lang/src/vm/action.rs +++ b/dust-lang/src/vm/action.rs @@ -99,10 +99,6 @@ pub fn load_function(instruction: InstructionBuilder, thread: &mut Thread) {} pub fn load_self(instruction: InstructionBuilder, thread: &mut Thread) {} -pub fn get_local(instruction: InstructionBuilder, thread: &mut Thread) {} - -pub fn set_local(instruction: InstructionBuilder, thread: &mut Thread) {} - pub fn add(instruction: InstructionBuilder, thread: &mut Thread) {} pub fn subtract(instruction: InstructionBuilder, thread: &mut Thread) {}