* config/tc-z8k.c (md_assemble): Improve error detection.
This commit is contained in:
parent
d56612afe8
commit
7af0dfc73d
2 changed files with 9 additions and 4 deletions
|
@ -1241,11 +1241,12 @@ md_assemble (char *str)
|
|||
|
||||
new_input_line_pointer = get_operands (opcode, op_end, operand);
|
||||
if (new_input_line_pointer)
|
||||
input_line_pointer = new_input_line_pointer;
|
||||
{
|
||||
input_line_pointer = new_input_line_pointer;
|
||||
opcode = get_specific (opcode, operand);
|
||||
}
|
||||
|
||||
opcode = get_specific (opcode, operand);
|
||||
|
||||
if (opcode == 0)
|
||||
if (new_input_line_pointer == NULL || opcode == NULL)
|
||||
{
|
||||
/* Couldn't find an opcode which matched the operands. */
|
||||
char *where = frag_more (2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue