skip_string() gewijzigd zodat ook instructies met een '.' erin geaccepteerd
worden. Komen voor in de 68020 assembler, bijv. "move.l", "add.l", etc. .
This commit is contained in:
parent
8998c4165d
commit
cd73332f77
1 changed files with 6 additions and 5 deletions
|
@ -6,10 +6,11 @@
|
||||||
|
|
||||||
/* This file contains the routine assemble(). Assemble() cuts an
|
/* This file contains the routine assemble(). Assemble() cuts an
|
||||||
* assembly instruction in a label, a mnemonic and several operands.
|
* assembly instruction in a label, a mnemonic and several operands.
|
||||||
* For a label and operands it calls table writer defined routines,
|
* For a mnemonic,label and operands it calls table writer defined
|
||||||
* process_label() and process_operand(), to give the table writer
|
* routines, process_mnemonic() * process_label() and process_operand(),
|
||||||
* the oppurtunity to do something special. At the end assemble() calls
|
* to give the table writer the oppurtunity to do something special.
|
||||||
* the routine belonging to the mnemonic with the supplied operands.
|
* At the end assemble() calls the routine belonging to the mnemonic
|
||||||
|
* with the supplied operands.
|
||||||
* If the table writer has other expectations of assemble() he should
|
* If the table writer has other expectations of assemble() he should
|
||||||
* write his own version.
|
* write his own version.
|
||||||
* Assemble parser the following instructions :
|
* Assemble parser the following instructions :
|
||||||
|
@ -169,7 +170,7 @@ char *match_ch( c, str, instr)
|
||||||
char *skip_string( ptr)
|
char *skip_string( ptr)
|
||||||
char *ptr;
|
char *ptr;
|
||||||
{
|
{
|
||||||
while ( isalnum( *ptr) || ( *ptr == '_'))
|
while ( isalnum( *ptr) && !isspace( *ptr) && *ptr != ':')
|
||||||
ptr++;
|
ptr++;
|
||||||
return( ptr);
|
return( ptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue