diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-11-25 08:05:22 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-11-25 08:05:22 (GMT) |
commit | 7a42f3772ab31bb9c756fc5c5c86c531c04b1d70 (patch) | |
tree | 1dc6440b1a1dde546c5eccf7744e1df5128bd833 /tools/d2c | |
parent | 16f9d3b943e272112e01f5bc51e922e2ea2ddfb8 (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/d2c')
-rw-r--r-- | tools/d2c/syntax.c | 10 |
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; |