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";
6 #include "prototypes.h"
8 extern unsigned short *Stack16Frame
;
10 /**********************************************************************
14 KERNEL_LockSegment(int segment
)
17 segment
= *(Stack16Frame
+ 6);
20 printf("LockSegment: segment %x\n", segment
);
26 /**********************************************************************
27 * KERNEL_UnlockSegment
30 KERNEL_UnlockSegment(int segment
)
33 segment
= *(Stack16Frame
+ 6);
36 printf("UnlockSegment: segment %x\n", segment
);
42 /**********************************************************************
46 KERNEL_WaitEvent(int task
)
49 printf("WaitEvent: task %d\n", task
);
53 /**********************************************************************
54 * KERNEL_GetModuleFileName
57 KERNEL_GetModuleFileName(int module
, char *filename
, int bytes
)
60 printf("GetModuleFileName: module %d, filename %x, bytes %d\n",
61 module
, filename
, bytes
);
64 strcpy(filename
, "TEST.EXE");
66 return strlen(filename
);
69 /**********************************************************************
73 KERNEL_DOS3Call(int ax
, int cx
, int dx
, int bx
, int sp
, int bp
,
74 int si
, int di
, int ds
, int es
)
76 switch ((ax
>> 8) & 0xff)
89 fprintf(stderr
, "DOS: AX %04x, BX %04x, CX %04x, DX %04x\n",
91 fprintf(stderr
, " SP %04x, BP %04x, SI %04x, DI %04x\n",
93 fprintf(stderr
, " DS %04x, ES %04x\n",