summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Boddie <david@boddie.org.uk>2023-11-16 00:58:13 +0100
committerDavid Boddie <david@boddie.org.uk>2023-11-16 16:44:28 +0100
commit1b44446e0d632d96dfba82c401b0aa12a1dfc00a (patch)
treed766bef2ebb5a6f3eed42dc312685884bfe3c27c
parentd8e1ae57f2200bc539f63848c790867788b2e133 (diff)
Fixed support for the status flag in some AND instructions.
-rw-r--r--utils/tl/thumb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/tl/thumb.c b/utils/tl/thumb.c
index 0c568a37..a309f82b 100644
--- a/utils/tl/thumb.c
+++ b/utils/tl/thumb.c
@@ -1444,6 +1444,9 @@ if(debug['G']) print("%ulx: %s: thumb\n", (ulong)(p->pc), p->from.sym->name);
break;
}
+ if (p->scond & C_SBIT)
+ o1 |= (1 << 4);
+
/* Only certain ranges of constants are supported. */
if ((instoffset & 0xff) == instoffset) {
o1 |= r | (rt<<24) | (instoffset << 16);