diff options
| author | David Boddie <david@boddie.org.uk> | 2023-11-16 00:58:13 +0100 |
|---|---|---|
| committer | David Boddie <david@boddie.org.uk> | 2023-11-16 16:44:28 +0100 |
| commit | 1b44446e0d632d96dfba82c401b0aa12a1dfc00a (patch) | |
| tree | d766bef2ebb5a6f3eed42dc312685884bfe3c27c | |
| parent | d8e1ae57f2200bc539f63848c790867788b2e133 (diff) | |
Fixed support for the status flag in some AND instructions.
| -rw-r--r-- | utils/tl/thumb.c | 3 |
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); |
