Initial commit
This commit is contained in:
60
LIB386/LIB_SYS/SYSTEM.C
Normal file
60
LIB386/LIB_SYS/SYSTEM.C
Normal file
@@ -0,0 +1,60 @@
|
||||
#include "\projet\lib386\lib_sys\adeline.h"
|
||||
#include "\projet\lib386\lib_sys\lib_sys.h"
|
||||
#include "\projet\lib386\lib_svga\lib_svga.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <dos.h>
|
||||
#include <i86.h>
|
||||
|
||||
|
||||
//extern void __interrupt NewInt24(void) ;
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
void InitSystem()
|
||||
{
|
||||
// union REGS r ;
|
||||
// struct SREGS sr ;
|
||||
// void far *fh ;
|
||||
|
||||
/*----- Install New Protected Vector 24 --------*/
|
||||
// r.x.eax = 0x2524 ;/* Function 25h for int 24 */
|
||||
// fh = (void far*)NewInt24 ;/* Get far Pointer */
|
||||
// r.x.edx = FP_OFF( fh ) ;/* Get Offset */
|
||||
// sr.ds = FP_SEG( fh ) ;/* Get Segment */
|
||||
// sr.es = 0 ;/* Security ( ... ) */
|
||||
// int386x( 0x21, &r, &r, &sr ) ;/* Invoke DOS 21h */
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
void ClearSystem()
|
||||
{
|
||||
// Inutile de restorer l'int 24h
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user