L = ReadToken (L+1, ",)", Arg, sizeof (Arg));
/* Check for errors */
- if (*L == '\0') {
+ if (*L == '\0') {
Error ("ASM code error: syntax error");
return 0;
}
AM = AM65_ZP_IND;
} else {
Error ("ASM code error: syntax error");
- return 0;
+ return 0;
}
}
break;
AM = AM65_ABSX;
}
} else if (Reg == 'Y') {
- AM = AM65_ABSY;
+ AM = AM65_ABSY;
} else {
Error ("ASM code error: syntax error");
return 0;
-void CS_AddEntry (CodeSeg* S, struct CodeEntry* E, LineInfo* LI)
+void CS_AddEntry (CodeSeg* S, struct CodeEntry* E)
/* Add an entry to the given code segment */
{
/* Transfer the labels if we have any */
-void CS_AddEntryLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap)
+void CS_AddLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap)
/* Add a line to the given code segment */
{
const char* L;
/* If we have a code entry, transfer the labels and insert it */
if (E) {
- CS_AddEntry (S, E, LI);
+ CS_AddEntry (S, E);
}
}
* memory moving.
*/
while (Count--) {
- CS_DelEntry (S, Start + Count);
- }
-}
-
-
-
-void CS_MoveEntry (CodeSeg* S, unsigned OldPos, unsigned NewPos)
-/* Move an entry from one position to another. OldPos is the current position
- * of the entry, NewPos is the new position of the entry.
- */
-{
- /* Get the code entry and remove it from the collection */
- CodeEntry* E = CS_GetEntry (S, OldPos);
- CollDelete (&S->Entries, OldPos);
-
- /* Correct NewPos if needed */
- if (NewPos >= OldPos) {
- /* Position has changed with removal */
- --NewPos;
+ CS_DelEntry (S, Start + Count);
}
-
- /* Now insert it at the new position */
- CollInsert (&S->Entries, E, NewPos);
}
*/
{
if (Index >= CollCount (&S->Entries)-1) {
- /* This is the last entry */
- return 0;
+ /* This is the last entry */
+ return 0;
} else {
- /* Code entries left */
+ /* Code entries left */
return CollAtUnchecked (&S->Entries, Index+1);
}
}