mirror of https://github.com/acidanthera/audk.git
Fix bug
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10263 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4e471bfd4d
commit
3a753121f2
|
@ -37,11 +37,10 @@ CHAR8 *gCondition[] = {
|
||||||
"2"
|
"2"
|
||||||
};
|
};
|
||||||
|
|
||||||
#define COND(_a) gCondition[(_a) >> 28]
|
#define COND(_a) gCondition[((_a) >> 28)]
|
||||||
|
|
||||||
CHAR8 *gReg[] = {
|
CHAR8 *gReg[] = {
|
||||||
"r0",
|
"r0",
|
||||||
"r1",
|
|
||||||
"r2",
|
"r2",
|
||||||
"r3",
|
"r3",
|
||||||
"r4",
|
"r4",
|
||||||
|
@ -225,7 +224,7 @@ DisassembleArmInstruction (
|
||||||
if ((OpCode & 0xfd70f000 ) == 0xf550f000) {
|
if ((OpCode & 0xfd70f000 ) == 0xf550f000) {
|
||||||
Index = AsciiSPrint (Buf, Size, "PLD");
|
Index = AsciiSPrint (Buf, Size, "PLD");
|
||||||
} else {
|
} else {
|
||||||
Index = AsciiSPrint (Buf, Size, "%a%a%a%a %a, ", L ? "LDR" : "STR", COND (OpCode), BYTE (B), (!P & W) ? "T":"", gReg[Rd]);
|
Index = AsciiSPrint (Buf, Size, "%a%a%a%a %a, ", L ? "LDR" : "STR", COND (OpCode), BYTE (B), (!(P) && W) ? "T":"", gReg[Rd]);
|
||||||
}
|
}
|
||||||
if (P) {
|
if (P) {
|
||||||
if (!I) {
|
if (!I) {
|
||||||
|
|
Loading…
Reference in New Issue