diff options
Diffstat (limited to 'lib/assembler.c')
-rw-r--r-- | lib/assembler.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/assembler.c b/lib/assembler.c index 71f1b6c..c2802da 100644 --- a/lib/assembler.c +++ b/lib/assembler.c @@ -1860,6 +1860,15 @@ void asm_eof(FILE * f) break; case E_OPERATION: fprintf(stderr, "Type operation.\n"); + fprintf(stderr, "Affichage de l'expression:\n"); + debug_print_expression(ttext->Expr); + fprintf(stderr, "-----\n"); + if (ttext->Expr->op == OP_DIRECT) { + if (ttext->Expr->child->e_subtype == E_VALUE) { + a = ttext->Expr->child->avalue; + break; + } + } if (ttext->Expr->op != OP_FUNC_CALL) { exception(1, _("Can't evaluate expression for a direct value")); } @@ -1934,6 +1943,15 @@ void asm_eof(FILE * f) break; case E_OPERATION: fprintf(stderr, "Type operation.\n"); + fprintf(stderr, "Affichage de l'expression:\n"); + debug_print_expression(tdata->Expr); + fprintf(stderr, "-----\n"); + if (ttext->Expr->op == OP_DIRECT) { + if (ttext->Expr->child->e_subtype == E_VALUE) { + a = ttext->Expr->child->avalue; + break; + } + } if (tdata->Expr->op != OP_FUNC_CALL) { exception(1, _("Can't evaluate expression for a direct value")); } |