diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2010-11-12 22:13:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2010-11-12 22:13:21 (GMT) |
commit | ae8cf6257c8d929de1b7ee86e29fcb45ab4af91c (patch) | |
tree | 59fa356b2f83020e23df4cf6975ca5d97567df4d /src/arch/dalvik/register.c | |
parent | abaf85fdc0edb2bfe67d07d52ae734d50c6fbf61 (diff) |
Changed the display of the pseudo registers by using an index.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@192 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/dalvik/register.c')
-rw-r--r-- | src/arch/dalvik/register.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/arch/dalvik/register.c b/src/arch/dalvik/register.c index fc7757d..dd5a512 100644 --- a/src/arch/dalvik/register.c +++ b/src/arch/dalvik/register.c @@ -134,6 +134,35 @@ GDalvikRegister *g_dalvik_register_new(uint16_t index) } +/****************************************************************************** +* * +* Paramètres : a = premier opérande à consulter. * +* b = second opérande à consulter. * +* * +* Description : Compare un registre avec un autre. * +* * +* Retour : Bilan de la comparaison. * +* * +* Remarques : - * +* * +******************************************************************************/ + +bool g_dalvik_register_compare(const GDalvikRegister *a, const GDalvikRegister *b) +{ + /* FIXME : GCC (Debian 4.4.5-4) trouble ? */ + + if (a == NULL) + printf("Alerte :: %hd & %hd\n", a->index, b->index); + + /* + printf("Compare :: %p & %p\n", a, b); + printf("Compare :: %hd & %hd\n", a->index, b->index); + */ + + return (a->index == b->index); + +} + /****************************************************************************** * * |