# HG changeset patch # User Mychaela Falconia # Date 1513894631 0 # Node ID 2767ff8d26d58e1df6f85784a45b87a0667f88e3 # Parent 27c269e408af0d03074a7e35a95152787323d737 tiobjd: same bug in ARM SWP decoding as in standalone armdis diff -r 27c269e408af -r 2767ff8d26d5 leo-obj/tool/armdis.c --- a/leo-obj/tool/armdis.c Thu Dec 21 22:15:00 2017 +0000 +++ b/leo-obj/tool/armdis.c Thu Dec 21 22:17:11 2017 +0000 @@ -209,7 +209,7 @@ regnames[word&0xF], regnames[(word>>8)&0xF]); else if ((word & 0x0FB00FF0) == 0x01000090) printf("swp%s%s\t%s, %s, [%s]\n", condition_decode[word>>28], - word&0x400000, "b", "", regnames[(word>>12)&0xF], + word&0x400000 ? "b" : "", regnames[(word>>12)&0xF], regnames[word&0xF], regnames[(word>>16)&0xF]); else printf("\n");