Assemble ldmac correctly.

This commit is contained in:
Nick Clifton 2000-06-25 16:49:47 +00:00
parent 05c58a7cfb
commit f0c56b9036
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-06-25 Kazu Hirata <kazu@hxi.com>
* config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
2000-06-24 DJ Delorie <dj@cygnus.com>
* config/tc-i386.c (md_estimate_size_before_relax): Revert

View File

@ -1026,7 +1026,12 @@ build_bytes (this_try, operand)
if (c & MACREG)
{
nib = 2 + operand[d].reg;
if (operand[0].mode == MACREG)
/* stmac has mac[hl] as the first operand. */
nib = 2 + operand[0].reg;
else
/* ldmac has mac[hl] as the second operand. */
nib = 2 + operand[1].reg;
}
}
nibble_count++;