fix addex again
authorJacob Lifshay <programmerjake@gmail.com>
Fri, 4 Sep 2020 03:28:56 +0000 (20:28 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Fri, 4 Sep 2020 03:41:04 +0000 (20:41 -0700)
src/instr_models.rs

index 4de58fe5e7250cd2a8221621799a7b649ea09783..2fee3db4e2cfb621e9278ccc6ab371fa8ba7324b 100644 (file)
@@ -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()?;