# HG changeset patch # User Mychaela Falconia # Date 1513894500 0 # Node ID 27c269e408af0d03074a7e35a95152787323d737 # Parent f5ad21985e2088b1e73f485bc0a87228f673146b arm7dis/armdis: bug in the decoding of SWP instructions diff -r f5ad21985e20 -r 27c269e408af arm7dis/armdis.c --- a/arm7dis/armdis.c Thu Dec 21 21:54:39 2017 +0000 +++ b/arm7dis/armdis.c Thu Dec 21 22:15:00 2017 +0000 @@ -211,7 +211,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");