From 700d534cf47ddc39014ee6bf76f3cbac6733d411 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 25 Sep 2019 08:59:03 +0100 Subject: [PATCH] correct pseudocode for cbranch --- simple_v_extension/appendix.mdwn | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/simple_v_extension/appendix.mdwn b/simple_v_extension/appendix.mdwn index 553d3eee7..a951d4450 100644 --- a/simple_v_extension/appendix.mdwn +++ b/simple_v_extension/appendix.mdwn @@ -326,16 +326,20 @@ complex), this becomes: if pred_inversion: if pred_zeroing: - if result != 0: + # NOR + if result == 0: goto branch else: - if result == 0: + # NAND + if (result & ps) != result: goto branch else: if pred_zeroing: - if (result & ps) != result: + # OR + if result != 0: goto branch else: + # AND if (result & ps) == result: goto branch -- 2.30.2