aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-11-08 15:48:26 +0000
committerNick Clifton <nickc@redhat.com>2005-11-08 15:48:26 +0000
commit4fa6945e82654828587750f5c85ce30b88f91886 (patch)
treeb585279248202b9d9ae55a16e14d68501f2bd50c /gas/expr.c
parent08333dc49822bfdb0c99c72a7789e27515c3908d (diff)
downloadgdb-4fa6945e82654828587750f5c85ce30b88f91886.zip
gdb-4fa6945e82654828587750f5c85ce30b88f91886.tar.gz
gdb-4fa6945e82654828587750f5c85ce30b88f91886.tar.bz2
* expr.c (operand <case '$'>): Use DOLLAR_AMBIGU rather than flag_mri_m68k
as condition for parsing the '$' as a prefix. * as.h (DOLLAR_AMBIGU): Define if needed.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/expr.c b/gas/expr.c
index a5a7771..c601b0a 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1095,10 +1095,10 @@ operand (expressionS *expressionP, enum expr_mode mode)
if (! flag_m68k_mri)
goto de_fault;
#endif
- if (flag_m68k_mri && hex_p (*input_line_pointer))
+ if (DOLLAR_AMBIGU && hex_p (*input_line_pointer))
{
- /* In MRI mode, '$' is also used as the prefix for a
- hexadecimal constant. */
+ /* In MRI mode and on Z80, '$' is also used as the prefix
+ for a hexadecimal constant. */
integer_constant (16, expressionP);
break;
}