2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
authorArnold Metselaar <arnold.metselaar@planet.nl>
Sun, 6 May 2012 09:49:21 +0000 (09:49 +0000)
committerArnold Metselaar <arnold.metselaar@planet.nl>
Sun, 6 May 2012 09:49:21 +0000 (09:49 +0000)
commit25045f79229a800bcef1027a9cacea8414c00848
tree01d7da5ccd86c8767840c2b581780fcf04e05a92
parent6c143e28e589f7fb0c2ca2cffcdc49efed2d9540
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.
gas/ChangeLog
gas/config/tc-z80.c
gas/config/tc-z80.h