home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Programming / Atmel / Asm / src / format.c < prev    next >
C/C++ Source or Header  |  2000-08-22  |  751b  |  30 lines

  1. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  2.  * ConvertLine()
  3.  * Converts multiple input formats to a standard one we can
  4.  * work from.  This is to make us compatible with some of the
  5.  * other assemblers out there.
  6.  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  7.  * Dont actualy know how I'm going to do this yet !!!!!!
  8. */
  9.  
  10. /* The assembler is expecting a 3 field input on each line ...
  11. ** LABEL OPCODE OPERAND
  12. **
  13. ** Comments have been dumped and the lot is upper case.
  14. */
  15.  
  16. #include <stdio.h>
  17. #include <string.h>
  18. #include "str_p.h"
  19.  
  20. void ConvertLine( char *Line, char *First, char *Second, char *Third )
  21. {
  22.   char *Ptr;
  23.  
  24.   Ptr=StrCpyChar(First,Line,' ');
  25.   Ptr=StrCpyChar(Second,Ptr,' ');
  26.     StrCpyChar(Third,Ptr,0);
  27. }
  28.  
  29.  
  30.