?login_element?

Subversion Repositories NedoOS

Rev

Rev 20 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2.  
  3. #include "../_sdk/nedodefs.h" //C only
  4.  
  5. #include "../_sdk/emit.c" //эєцэю фы  compile ш asm (шэрўх эх т√тхёЄш ю°шсъш)
  6.  
  7. #include "../_sdk/fmttg.h" //эєцэю фы  token, asm, export
  8.  
  9. #include "asm.c"
  10.  
  11. #include "asmloop.c"
  12.  
  13. PROC writearray(PBYTE parray, UINT size, PCHAR filename)
  14. {
  15. VAR PBYTE file;
  16.   file = fopen(filename, "wb");
  17.   fwrite(parray, size, 1, file);
  18.   fclose(file);
  19. }
  20.  
  21. int main(int argc,char* argv[])
  22. {
  23.   int i;
  24.   char *filename;
  25.  
  26.   _ferr = openwrite("asmerr.f");
  27.   _errs = +TRUE;
  28.  
  29.   for (i=1; i<argc; i++) {
  30.     filename = argv[i];
  31.     asmcompile(filename);
  32.     writearray((PBYTE)_labels0, _LABELPAGESIZE, "label0.f");
  33.     //writearray((PBYTE)_labels1, _LABELPAGESIZE, "label1.f");
  34.     //writearray((PBYTE)_labels2, _LABELPAGESIZE, "label2.f");
  35.     //writearray((PBYTE)_labels3, _LABELPAGESIZE, "label3.f");
  36.     //writearray((PBYTE)_labels4, _LABELPAGESIZE, "label4.f");
  37.     //writearray((PBYTE)_labels5, _LABELPAGESIZE, "label5.f");
  38.     //writearray((PBYTE)_labels6, _LABELPAGESIZE, "label6.f");
  39.     //writearray((PBYTE)_labels7, _LABELPAGESIZE, "label7.f");
  40.   }; //for
  41.  
  42.   fclose(_ferr);//closewrite(_ferr);
  43.  
  44.   return 0;
  45. }
  46.