Release 940815
[wine/gsoc-2012-control.git] / miscemu / kernel.c
blobd257b1611f006a73f87f05a62800272ecd343e24
1 static char RCSId[] = "$Id: kernel.c,v 1.2 1993/07/04 04:04:21 root Exp root $";
2 static char Copyright[] = "Copyright Robert J. Amstadt, 1993";
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include "prototypes.h"
7 #include "regfunc.h"
8 #include "options.h"
10 extern unsigned short WIN_StackSize;
12 /**********************************************************************
13 * KERNEL_LockSegment
15 int
16 KERNEL_LockSegment(int segment)
18 if (segment == -1)
19 segment = *(Stack16Frame + 6);
21 #ifdef RELAY_DEBUG
22 printf("LockSegment: segment %x\n", segment);
23 #endif
25 return segment;
28 /**********************************************************************
29 * KERNEL_UnlockSegment
31 int
32 KERNEL_UnlockSegment(int segment)
34 if (segment == -1)
35 segment = *(Stack16Frame + 6);
37 #ifdef RELAY_DEBUG
38 printf("UnlockSegment: segment %x\n", segment);
39 #endif
41 return segment;
44 /**********************************************************************
45 * KERNEL_InitTask
47 KERNEL_InitTask()
49 _BX = 0x81;
50 _AX = 1;
51 _CX = WIN_StackSize;
52 _DX = Options.cmdShow;
53 _SI = 0;
54 ReturnFromRegisterFunc();
55 /* Function does not return */
58 /**********************************************************************
59 * KERNEL_WaitEvent
61 int
62 KERNEL_WaitEvent(int task)
64 #ifdef RELAY_DEBUG
65 printf("WaitEvent: task %d\n", task);
66 #endif
67 return 0;