/*****************************************************************************/
-
+
+/* cc65 */
#include "codegen.h"
#include "error.h"
#include "expr.h"
+#include "loadexpr.h"
#include "scanner.h"
#include "testexpr.h"
if (ED_IsConstAbs (&Expr)) {
/* Result is constant, so we know the outcome */
- Result = (Expr.Val != 0);
+ Result = (Expr.IVal != 0);
/* Constant rvalue */
- if (!Invert && Expr.Val == 0) {
+ if (!Invert && Expr.IVal == 0) {
g_jump (Label);
Warning ("Unreachable code");
- } else if (Invert && Expr.Val != 0) {
+ } else if (Invert && Expr.IVal != 0) {
g_jump (Label);
}
}
/* Load the value into the primary register */
- ExprLoad (CF_FORCECHAR, &Expr);
+ LoadExpr (CF_FORCECHAR, &Expr);
/* Generate the jump */
if (Invert) {