From 4b0266421929e448548dae0f6d14b97d338ff86d Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Mon, 16 Apr 2001 02:35:05 +0000 Subject: Last (?) final bugfixes --- lib/assembler.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib') 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")); } -- cgit v1.2.3