From 7c9fef5800033c321823d705afc2423505e0febe Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 7 Sep 2023 20:18:30 -0700 Subject: [PATCH] MSP430Constants: Extend CG3 -1 value to 20 bits Only providing 16 bits doesn't work well Signed-off-by: Keith Packard --- se/sics/mspsim/core/MSP430Constants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/se/sics/mspsim/core/MSP430Constants.java b/se/sics/mspsim/core/MSP430Constants.java index a339222..911ba18 100644 --- a/se/sics/mspsim/core/MSP430Constants.java +++ b/se/sics/mspsim/core/MSP430Constants.java @@ -181,7 +181,7 @@ public interface MSP430Constants { public static final int CG2 = 3; public static final int[][] CREG_VALUES = new int[][]{ - {0, 0, 4, 8}, {0, 1, 2, 0xffff} + {0, 0, 4, 8}, {0, 1, 2, 0xfffff} }; public static final int CARRY_B = 0;