From bce7c6473ae6c133b0dd8db17bbeb229cb193439 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 3 Sep 2020 20:28:56 -0700 Subject: [PATCH] fix addex again --- src/instr_models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instr_models.rs b/src/instr_models.rs index 4de58fe..2fee3db 100644 --- a/src/instr_models.rs +++ b/src/instr_models.rs @@ -263,7 +263,7 @@ pub fn subfzeo(inputs: InstructionInput) -> InstructionResult { pub fn addex(inputs: InstructionInput) -> InstructionResult { let ra: u64 = inputs.try_get_ra()?; - let rb: u64 = inputs.try_get_ra()?; + let rb: u64 = inputs.try_get_rb()?; let OverflowFlags { ov: carry_in, so, .. } = inputs.try_get_overflow()?; -- 2.30.2