Subversion Repositories Kolibri OS

Rev

Rev 298 | Blame | Last modification | View Log | Download | RSS feed

  1. // Emacs style mode select   -*- C++ -*-
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // $Log:$
  18. //
  19. // DESCRIPTION:
  20. //      Main program, simply calls D_DoomMain high level loop.
  21. //
  22. //-----------------------------------------------------------------------------
  23.  
  24. static const char
  25. rcsid[] = "$Id: i_main.c,v 1.4 1997/02/03 22:45:10 b1 Exp $";
  26.  
  27. #include "doomdef.h"
  28.  
  29. #include "m_argv.h"
  30. #include "d_main.h"
  31. #include "kolibri.h"
  32.  
  33. int main(int argc, char **argv)
  34. {
  35. //    static char * tmp[]=
  36. //      {"/hd/1/menuetos/doom/mdoom",
  37. //       NULL};
  38.     myargc = 1;
  39.     myargv = argv;
  40.  
  41. //  InitHeap(32*1024*1024);
  42.   _asm
  43.   {
  44.     push ebx
  45.     push ecx
  46.     mov eax, 66
  47.     mov ebx, 1
  48.     mov ecx, 1
  49.     int 0x40
  50.     pop ecx
  51.     pop ebx
  52.   };
  53.  
  54.     D_DoomMain ();
  55.  
  56.     return 0;
  57. }
  58.