diff --git a/apps/zasm/expr.asm b/apps/zasm/expr.asm index 41c8049..2b315fc 100644 --- a/apps/zasm/expr.asm +++ b/apps/zasm/expr.asm @@ -53,7 +53,7 @@ _resolveLeftAndRight: ; Now we have parsed everything to the left and we have its result in ; IX. What we need to do now is the same thing on (DE) and then apply ; the + operator. Let's save IX somewhere and parse this. - ex hl, de ; right expr now in HL + ex de, hl ; right expr now in HL push ix pop de ; numeric left expr result in DE jp parseExpr diff --git a/tools/tests/zasm/test7.asm b/tools/tests/zasm/test7.asm index 603740f..a3710a4 100644 --- a/tools/tests/zasm/test7.asm +++ b/tools/tests/zasm/test7.asm @@ -25,6 +25,7 @@ .equ DIREC_RAMSTART TOK_RAMEND #include "zasm/directive.asm" #include "zasm/instr.asm" +#include "zasm/expr.asm" zasmIsFirstPass: nop @@ -32,6 +33,3 @@ zasmIsFirstPass: zasmIsLocalPass: nop -parseExpr: - nop -