summaryrefslogtreecommitdiff
path: root/lib/assembler.c
diff options
context:
space:
mode:
authorPixel <>2001-04-16 02:35:05 +0000
committerPixel <>2001-04-16 02:35:05 +0000
commit4b0266421929e448548dae0f6d14b97d338ff86d (patch)
tree284b403b2e61c87c19e3624bfcc40c83ba322504 /lib/assembler.c
parentc4084cde0b64dfa49fdab5eb347e0eac696ec254 (diff)
Last (?) final bugfixes
Diffstat (limited to 'lib/assembler.c')
-rw-r--r--lib/assembler.c18
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"));
}