From ab2015fc3dd01def307e0d65e576fa1b916e941d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Henrik=20Sk=C3=A5rstedt?= Date: Mon, 15 Oct 2018 00:16:44 -0700 Subject: [PATCH] Can evaluate characters by single quote '?' --- x65.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x65.cpp b/x65.cpp index e3071a0..e69f0d3 100644 --- a/x65.cpp +++ b/x65.cpp @@ -3200,8 +3200,8 @@ EvalOperator Asm::RPNToken(strref &exp, const struct EvalContext &etx, EvalOpera case '(': if (prev_op != EVOP_VAL) { ++exp; return EVOP_LPR; } return EVOP_STP; case ')': ++exp; return EVOP_RPR; case ',': - case '?': - case '\'': return EVOP_STP; + case '?': return EVOP_STP; + case '\'': if( exp[ 2 ] == '\'' ) { value = exp[ 1 ]; exp += 3; return EVOP_VAL; } return EVOP_STP; } // ! by itself is current scope, !+label char is a local label if (c == '!' && !(exp + 1).len_label()) {