?login_element?

Subversion Repositories NedoOS

Rev

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

  1. #ifndef OSCALLS_H
  2. #define OSCALLS_H
  3.  
  4. void OS_DROPAPP(unsigned char id);
  5. unsigned long OS_GETAPPMAINPAGES(unsigned char id);
  6. unsigned char OS_GETPAGEOWNER(unsigned char id);
  7. void YIELD(void);
  8. void OS_SETGFX(unsigned char mode);
  9. void OS_CLS(unsigned char color);
  10. void OS_SETCOLOR(unsigned char color);
  11. void OS_PRATTR(unsigned char attribute);
  12. void OS_SETXY(unsigned char x, unsigned char y);
  13. void OS_SETXYW(unsigned int w);
  14. void OS_SETMUSIC(void (*play)(void), unsigned char pg);
  15. void os_initstdio(void);
  16. void print(unsigned char *);
  17. unsigned int OS_GETXY(void);
  18. unsigned char OS_GETATTR(void);
  19. long time(void); // Alone Coder
  20.  
  21. // Kulich Area
  22.  
  23. struct diskOp
  24. {
  25.         unsigned char drive;
  26.         void *BufAdr;
  27.         unsigned long sector;
  28.         unsigned char count;
  29. };
  30. signed long OS_GETKEY (void);// BC HL
  31. unsigned int OS_READSECTORS(struct diskOp *);
  32. unsigned int OS_WRITESECTORS(struct diskOp *);
  33. unsigned long OS_GETTIME(void); // out: bc=date, hl=time
  34. unsigned int OS_NEWPAGE(void);
  35. unsigned int OS_CHDIR(unsigned char *trgPathPtr);
  36. unsigned int OS_GETPATH(unsigned int curPathPtr); // in: de = ptr to buffer out: hl = ptr to last symbol of path
  37. unsigned int OS_SETSYSDRV(void);                                  // out: H: H!=0 -- ��⥬�� ��� �� �ਬ���஢��. L: -- ��饥 ������⢮ �ਬ���஢����� ��᪮�.
  38. unsigned int OS_NEWAPP(unsigned int trgPathPtr);
  39. unsigned int OS_RUNAPP(unsigned char pId); // e=id ;ACTIVATE DISABLED APP
  40. unsigned int OS_WAITPID(unsigned char pId);
  41. unsigned int OS_HIDEFROMPARENT(void);
  42. unsigned long OS_STARTAPP(unsigned long appParamsPtr);                                  // out: b=id, a=error, dehl=newapp pages in 0000,4000,8000,c000 ;MAKE NEW DISABLED APP
  43. unsigned int OS_RENAME(unsigned char *oldName, unsigned char *newName); // DE - ��஥ ���, �������� � ����� ��� �⭮�⥫�� ���� (ASCIIZ). HL - ����� ���, ���� �� �ॡ���� ⠪�� �� ����, ��� � DE. // out HL - 㪠��⥫� �� ��᫥���� ������� ��� � �⮬ ���� (NOT MSXDOS compatible! with Drive/path!)
  44. unsigned int OS_DELETE(unsigned char *fileName);                                                // DE - ��� 䠩��, �������� � ����� ��� �⭮�⥫�� ���� (ASCIIZ).; � - �訡��. �᫨ 0x00, � �訡�� ���.
  45. void OS_DIHALT(void);
  46. // End of Kulich area
  47.  
  48. void SETPG32KHIGH(unsigned char page);
  49.  
  50. unsigned int putf(const char *str);
  51. void putcsi(unsigned char);
  52. void printn(unsigned char *, unsigned int size);
  53. #define PUTCSI(_a) putcsi(_a)
  54. void putcsi2(unsigned int);
  55. #define PUTCSI2(_a, _b) putcsi(_a | (_b << 8))
  56.  
  57. union APP_PAGES
  58. {
  59.         unsigned long l;
  60.         struct
  61.         {
  62.                 unsigned char window_3;
  63.                 unsigned char window_2;
  64.                 unsigned char window_1;
  65.                 unsigned char window_0;
  66.                 unsigned char pId;
  67.                 unsigned char error;
  68.                 unsigned char f;
  69.         } pgs;
  70. };
  71. unsigned long OS_GETMAINPAGES(void);
  72. unsigned int OS_GETCONFIG(void);
  73. unsigned int os_reserv_1(void *);
  74. void OS_SCROLLUP(unsigned int xy, unsigned int wh);
  75. unsigned int _low_level_get(void);
  76. char *cgets(char *str);
  77. void conv1251to866(unsigned char *bufer);
  78.  
  79. void exit(int e);
  80. unsigned char scrredraw(void);
  81.  
  82. #define MOUSE_BUTTON_BIT_LMB 0x01
  83. #define MOUSE_BUTTON_BIT_RMB 0x02
  84.  
  85. extern unsigned char errno;
  86. extern unsigned int mouse_yx;
  87. extern unsigned char mouse_x;
  88. extern unsigned char mouse_y;
  89. extern unsigned char mouse_btns;
  90. extern unsigned char t1251to866[128];
  91.  
  92. #define INK_BLACK 0x00
  93. #define INK_BLUE 0x01
  94. #define INK_RED 0x02
  95. #define INK_MAGENTA 0x03
  96. #define INK_GREEN 0x04
  97. #define INK_CYAN 0x05
  98. #define INK_YELLOW 0x06
  99. #define INK_WHITE 0x07
  100. #define INK_WHITE_BRIGHT 0x47
  101.  
  102. #define PAPER_BLACK 0x00
  103. #define PAPER_BLUE 0x08
  104. #define PAPER_RED 0x10
  105. #define PAPER_MAGENTA 0x18
  106. #define PAPER_GREEN 0x20
  107. #define PAPER_CYAN 0x28
  108. #define PAPER_YELLOW 0x30
  109. #define PAPER_WHITE 0x38
  110.  
  111. #endif