X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Fconfig%2Ftc-z80.c;fp=gas%2Fconfig%2Ftc-z80.c;h=d8bd59ff3b76df5c620dc5d959b7b733ce1a6482;hp=89a460302af751894a7e645fe555f4ff79aebaa0;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/gas/config/tc-z80.c b/gas/config/tc-z80.c index 89a4603..d8bd59f 100644 --- a/gas/config/tc-z80.c +++ b/gas/config/tc-z80.c @@ -1,5 +1,5 @@ /* tc-z80.c -- Assemble code for the Zilog Z80 and ASCII R800 - Copyright 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Arnold Metselaar This file is part of GAS, the GNU Assembler. @@ -412,7 +412,7 @@ static char err_flag; static void error (const char * message) { - as_bad (message); + as_bad ("%s", message); err_flag = 1; } @@ -687,7 +687,7 @@ emit_byte (expressionS * val, bfd_reloc_code_real_type r_type) *p = val->X_add_number; if ((r_type == BFD_RELOC_8_PCREL) && (val->X_op == O_constant)) { - as_bad(_("cannot make a relative jump to an absolute location")); + as_bad (_("cannot make a relative jump to an absolute location")); } else if (val->X_op == O_constant) { @@ -1471,7 +1471,7 @@ emit_ldreg (int dest, expressionS * src) && (src->X_add_number == REG_BC || src->X_add_number == REG_DE)) { q = frag_more (1); - *q = 0x0A + ((dest & 1) << 4); + *q = 0x0A + ((src->X_add_number & 1) << 4); break; } @@ -2028,4 +2028,3 @@ tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED , fixS *fixp) return reloc; } -