FreeCalypso > hg > freecalypso-reveng
diff arm7dis/thumbdis.c @ 103:a10acb1688e0
thumbdis: buglet in the decoding of sub-from-sp
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 31 Mar 2014 01:59:28 +0000 |
parents | 78e4702884e3 |
children | c883e60df239 |
line wrap: on
line diff
--- a/arm7dis/thumbdis.c Mon Mar 31 01:52:56 2014 +0000 +++ b/arm7dis/thumbdis.c Mon Mar 31 01:59:28 2014 +0000 @@ -214,7 +214,7 @@ printf("<invalid format 13>\n"); return; } - loff = (word & 0xFF) << 2; + loff = (word & 0x7F) << 2; printf("%s\tsp, #%u", word&0x80 ? "sub" : "add", loff); if (loff >= 10) printf("\t; 0x%x", loff);