diff options
author | Arnold Metselaar <arnold.metselaar@planet.nl> | 2012-05-06 09:49:21 +0000 |
---|---|---|
committer | Arnold Metselaar <arnold.metselaar@planet.nl> | 2012-05-06 09:49:21 +0000 |
commit | 25045f79229a800bcef1027a9cacea8414c00848 (patch) | |
tree | 01d7da5ccd86c8767840c2b581780fcf04e05a92 /gas/config/tc-z80.h | |
parent | 6c143e28e589f7fb0c2ca2cffcdc49efed2d9540 (diff) | |
download | gdb-25045f79229a800bcef1027a9cacea8414c00848.zip gdb-25045f79229a800bcef1027a9cacea8414c00848.tar.gz gdb-25045f79229a800bcef1027a9cacea8414c00848.tar.bz2 |
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.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/config/tc-z80.h b/gas/config/tc-z80.h index a78b593..48428a9 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 |