FreeCalypso > hg > freecalypso-reveng
annotate arm7dis/atcommon.c @ 153:4d7f36110f1c
leo-obj: frame_na7_db_fl/os_pro.obj disassembles the way it should
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 02 May 2014 04:12:14 +0000 |
parents | c883e60df239 |
children |
rev | line source |
---|---|
107
c883e60df239
arm7dis: README and header comments added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
97
diff
changeset
|
1 /* |
c883e60df239
arm7dis: README and header comments added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
97
diff
changeset
|
2 * Lean and mean ARM7TDMI disassembler |
c883e60df239
arm7dis: README and header comments added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
97
diff
changeset
|
3 * Written by Spacefalcon the Outlaw |
c883e60df239
arm7dis: README and header comments added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
97
diff
changeset
|
4 */ |
c883e60df239
arm7dis: README and header comments added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
97
diff
changeset
|
5 |
87
f7fba8518fa2
armdis: skeleton compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 /* a few disassembly bits common between ARM and Thumb */ |
f7fba8518fa2
armdis: skeleton compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 |
f7fba8518fa2
armdis: skeleton compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 char *regnames[16] = {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", |
f7fba8518fa2
armdis: skeleton compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 "r8", "r9", "r10", "r11", "r12", "sp", "lr", "pc"}; |
f7fba8518fa2
armdis: skeleton compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 |
f7fba8518fa2
armdis: skeleton compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 char *condition_decode[16] = {"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc", |
f7fba8518fa2
armdis: skeleton compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 "hi", "ls", "ge", "lt", "gt", "le", "", "INV"}; |
97
fb5ea2758482
thumbdis written, compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
87
diff
changeset
|
13 |
fb5ea2758482
thumbdis written, compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
87
diff
changeset
|
14 char *shift_types[4] = {"lsl", "lsr", "asr", "ror"}; |