summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-11-25 08:05:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-11-25 08:05:22 (GMT)
commit7a42f3772ab31bb9c756fc5c5c86c531c04b1d70 (patch)
tree1dc6440b1a1dde546c5eccf7744e1df5128bd833 /tools
parent16f9d3b943e272112e01f5bc51e922e2ea2ddfb8 (diff)
Extended the range of supported ARMv7 instructions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@427 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'tools')
-rw-r--r--tools/d2c/syntax.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/d2c/syntax.c b/tools/d2c/syntax.c
index 5fec1a6..8947810 100644
--- a/tools/d2c/syntax.c
+++ b/tools/d2c/syntax.c
@@ -35,8 +35,9 @@
/* Propriétés particulières pour les opérandes */
typedef enum _SyntaxItemFlags
{
- SIF_NONE = (0 << 0), /* Aucune propriété */
- SIF_DECIMAL = (1 << 0) /* Affichage en décimal */
+ SIF_NONE = (0 << 0), /* Aucune propriété */
+ SIF_DECIMAL = (1 << 0), /* Affichage en décimal */
+ SIF_OPTIONAL = (1 << 1) /* Absence tolérée */
} SyntaxItemFlags;
@@ -144,6 +145,11 @@ void register_syntax_item(asm_syntax *syntax, char *name, bool internal)
memmove(name, name + 1, len);
break;
+ case '?':
+ item->flags |= SIF_OPTIONAL;
+ memmove(name, name + 1, len);
+ break;
+
default:
len = 1;
break;