summaryrefslogtreecommitdiff
path: root/gas/config/tc-z80.h
diff options
context:
space:
mode:
authorArnold Metselaar <arnold.metselaar@planet.nl>2012-05-06 09:49:21 +0000
committerArnold Metselaar <arnold.metselaar@planet.nl>2012-05-06 09:49:21 +0000
commit902b20d0d9bb0dfdf21757410334b6a8911083b9 (patch)
tree04f726cf92aab22ce3c89cea525eaa65bc34c303 /gas/config/tc-z80.h
parent3add09acd980675bef7f2fa9e288ac7d6c6bc9f7 (diff)
downloadbinutils-redhat-902b20d0d9bb0dfdf21757410334b6a8911083b9.tar.gz
2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
* config/tc-z80.h(md_register_arithmetic): Define as 0. * config/tc-z80.c(md_begin): Store register names in symbol table, prevents usage as ordinary symbol. * config/tc-z80.c(contains_register): New function. * config/tc-z80.c(parse_exp2): Removed. * config/tc-z80.c(parse_exp_not_indexed): New function. * config/tc-z80.c(parse_exp): Add code to recogize indexed addressing after parsing. * config/tc-z80.c(emit_byte, emit_word): Use contains_register. * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify condition for jump to register. * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use parse_exp_not_indexed.
Diffstat (limited to 'gas/config/tc-z80.h')
-rw-r--r--gas/config/tc-z80.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/config/tc-z80.h b/gas/config/tc-z80.h
index a78b593c5d..48428a9745 100644
--- a/gas/config/tc-z80.h
+++ b/gas/config/tc-z80.h
@@ -1,5 +1,5 @@
/* this is tc-z80.h
- Copyright 2005, 2006, 2007 Free Software Foundation, Inc.
+ Copyright 2005, 2006, 2007, 2012 Free Software Foundation, Inc.
Contributed by Arnold Metselaar <arnold_m@operamail.com>
@@ -102,4 +102,8 @@ extern void z80_cons_fix_new (fragS *, int, int, expressionS *);
P2VAR to the truncated power of two of sizes up to eight bytes. */
#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) (P2VAR) = 0
+/* It does not make any sense to perform arithmetic on the numbers
+ we use to identify registers. */
+#define md_register_arithmetic 0
+
#endif