From a7afecac28beac8db43be5b988f854e943b05c8a Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Mon, 28 Sep 2020 21:39:33 +0200 Subject: [PATCH] use BRMI instead of -CS since we only compare small positive integers, it doesn't matter, but BRCS/BRLO is unsigned comparison while BRMI is signed, what makes more sense. --- foo.S | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/foo.S b/foo.S index ceb50b7..a3d17e4 100644 --- a/foo.S +++ b/foo.S @@ -1,7 +1,8 @@ -//#define DEBUG -#define CAL_MAGIC 0x9e // attiny4 handwired +#define DEBUG +#define CAL_MAGIC 0x91 // attiny4 flex-lowpass 1 +//#define CAL_MAGIC 0x9e // attiny4 handwired //#define CAL_MAGIC 0x8d // attiny4 devboard -//#define CAL_MAGIC 0xa7 // attiny9 devboard +//#define CAL_MAGIC 0xa9 // attiny9 devboard /* REGISTER NAMES */ @@ -82,7 +83,7 @@ mod3: ; mod3(Mh.Ml) -> t ANDI Ml, 0x03 ADD Ml, tmp CPI Ml, 3 - BRCS skip + BRMI skip SUBI Ml, 3 skip: RET -- 2.39.3