* expr.c (op_encoding): Map '=' to O_SINGLE_EQ, if defined.
* config/tc-z80.h: Define O_SINGLE_EQ as O_eq.
This commit is contained in:
parent
0e470c55e8
commit
fb7ccfc159
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-07 Arnold Metselaar <arnold.metselaar@planet.nl>
|
||||||
|
|
||||||
|
* expr.c (op_encoding): Map '=' to O_SINGLE_EQ, if defined.
|
||||||
|
* config/tc-z80.h: Define O_SINGLE_EQ as O_eq.
|
||||||
|
|
||||||
2005-11-07 Alan Modra <amodra@bigpond.net.au>
|
2005-11-07 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* macro.c (buffer_and_nest): Skip labels regardless of
|
* macro.c (buffer_and_nest): Skip labels regardless of
|
||||||
|
|
|
@ -78,10 +78,12 @@ extern int z80_optimize_expr (expressionS *, operatorT, expressionS *);
|
||||||
|
|
||||||
#define LISTING_WORD_SIZE 2
|
#define LISTING_WORD_SIZE 2
|
||||||
|
|
||||||
|
/* A single '=' is accepted as a comparison operator. */
|
||||||
|
#define O_SINGLE_EQ O_eq
|
||||||
|
|
||||||
/* A '$' is used to refer to the current location or as a hex. prefix. */
|
/* A '$' is used to refer to the current location or as a hex. prefix. */
|
||||||
#define DOLLAR_DOT
|
#define DOLLAR_DOT
|
||||||
#define DOLLAR_AMBIGU 1
|
#define DOLLAR_AMBIGU 1
|
||||||
#define SINGLE_EQ_COMPARES
|
|
||||||
#define LOCAL_LABELS_FB 1
|
#define LOCAL_LABELS_FB 1
|
||||||
#define LITERAL_PREFIXPERCENT_BIN
|
#define LITERAL_PREFIXPERCENT_BIN
|
||||||
#define NUMBERS_WITH_SUFFIX 1
|
#define NUMBERS_WITH_SUFFIX 1
|
||||||
|
|
|
@ -1390,6 +1390,9 @@ clean_up_expression (expressionS *expressionP)
|
||||||
|
|
||||||
#undef __
|
#undef __
|
||||||
#define __ O_illegal
|
#define __ O_illegal
|
||||||
|
#ifndef O_SINGLE_EQ
|
||||||
|
#define O_SINGLE_EQ O_illegal
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Maps ASCII -> operators. */
|
/* Maps ASCII -> operators. */
|
||||||
static const operatorT op_encoding[256] = {
|
static const operatorT op_encoding[256] = {
|
||||||
|
@ -1399,7 +1402,7 @@ static const operatorT op_encoding[256] = {
|
||||||
__, O_bit_or_not, __, __, __, O_modulus, O_bit_and, __,
|
__, O_bit_or_not, __, __, __, O_modulus, O_bit_and, __,
|
||||||
__, __, O_multiply, O_add, __, O_subtract, __, O_divide,
|
__, __, O_multiply, O_add, __, O_subtract, __, O_divide,
|
||||||
__, __, __, __, __, __, __, __,
|
__, __, __, __, __, __, __, __,
|
||||||
__, __, __, __, O_lt, __, O_gt, __,
|
__, __, __, __, O_lt, O_SINGLE_EQ, O_gt, __,
|
||||||
__, __, __, __, __, __, __, __,
|
__, __, __, __, __, __, __, __,
|
||||||
__, __, __, __, __, __, __, __,
|
__, __, __, __, __, __, __, __,
|
||||||
__, __, __, __, __, __, __, __,
|
__, __, __, __, __, __, __, __,
|
||||||
|
|
Loading…
Reference in New Issue