      17.10    BIOS,    
   .       
      ,     
  . (    
  .) 

     17.10.  BI6C.CPP (  ) 

    1:	main() 
    2:	{ 
    3:	asm	{ 
    4:	mov	ch,	0	//					 
    5:	mov	cl,	7	//			  
    6:	mov	ah,	1	//					BIOS	1 
    7:  	int	0x10		//		BIOS					 
    8.	} 
    9:	return 0; 
    10:	} 

      asm   3-8      
:   BIOS     
.    4, 5   ch  ci , 
      ,  
 . (     ,   
      .)   
       . 
      6   ah    
 BIOS,     .    
    7    BIOS  
  int 0x10  ,     
   DOS.       
 .  ,      ,  
   ,     . 

        

        DOS  BIOS      
  .     Borland C++ 
   interrupt,    void  
 .      C++     
   : 

    void interrupt AnyName(unsigned bp,  unsigned di,  unsigned si, unsioned ds,  
       unsigned es. unsigned dx, ^signed ex,  unsigned bx, unsigned ax, unsigned 
      ip,  unsigned cs, unsigned flags) 
   {
      // ....      C++ 
   }

    e      ,   
.        , 
      .     
     ,      
.   ,        
,         .
     ,   ,     
   . ,      ,   
     b  . 
           interrapt-.  
      : 

push           ;   
push bx
push cx
push dx
push es
push ds
push si
push di
push bp
mov bp, DGROUP    ;    b     
mov ds, bp                 ;    DS    
mov bp, sp                 ;        


     17.    	453 
