?login_element?

Subversion Repositories NedoOS

Rev

Rev 653 | Blame | Compare with Previous | Last modification | View Log | Download

  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. #include "findlbl.c"
  14.  
  15. PROC writearray(PBYTE parray, UINT size, PCHAR filename)
  16. {
  17. VAR PBYTE file;
  18.   file = fopen(filename, "wb");
  19.   fwrite(parray, size, 1, file);
  20.   fclose(file);
  21. }
  22.  
  23. int main(int argc,char* argv[])
  24. {
  25.   int i;
  26.   char *filename;
  27.  
  28.   _ferr = openwrite("asmerr.f");
  29.   _errs = +TRUE;
  30.  
  31.   for (i=1; i<argc; i++) {
  32.     filename = argv[i];
  33.     asmcompile(filename);
  34.     writearray((PBYTE)_labels0, _LABELPAGESIZE, "label0.f");
  35.     //writearray((PBYTE)_labels1, _LABELPAGESIZE, "label1.f");
  36.     //writearray((PBYTE)_labels2, _LABELPAGESIZE, "label2.f");
  37.     //writearray((PBYTE)_labels3, _LABELPAGESIZE, "label3.f");
  38.     //writearray((PBYTE)_labels4, _LABELPAGESIZE, "label4.f");
  39.     //writearray((PBYTE)_labels5, _LABELPAGESIZE, "label5.f");
  40.     //writearray((PBYTE)_labels6, _LABELPAGESIZE, "label6.f");
  41.     //writearray((PBYTE)_labels7, _LABELPAGESIZE, "label7.f");
  42.   }; //for
  43.  
  44.   fclose(_ferr);//closewrite(_ferr);
  45.  
  46.   return 0;
  47. }
  48.