La détection de materiel

 
X- Page BIOS
 
Vous ne savez pas forcement la date d'agréement de votre BIOS. Cette procédure l'affiche ainsi que la date système actuelle. La date d'agréement est fixée lors du démarrage du PC dans la zone des variables BIOS. Cette date est en US c'est à dire MM/JJ/AA, il faut donc inverser le jour et le mois à l'affichage.
 
 
PageBIOS: 
         call ModeTexte 
         mov dx,offset Bios_Init 
         call PutString 
         mov dx,offset Bios_Fab 
         call PutString 
         push es 
         mov ax,0f000h 
         mov es,ax 
         mov di,0fff8h 
         mov dl,es:[di] 
         call Putch 
         inc di 
         mov dl,es:[di] 
         call Putch 
         mov dl,'/' 
         call Putch 
         mov di,0fff5h 
         mov dl,es:[di] 
         call Putch 
         inc di 
         mov dl,es:[di] 
         call Putch 
         mov dl,'/' 
         call Putch 
         mov di,0fffBh 
         mov dl,es:[di] 
         call Putch 
         inc di 
         mov dl,es:[di] 
         call Putch 
         pop es 
         mov dx,offset Bios_Cur 
         call PutString 
  
         mov ax,2a00h 
         int 21h 
  
         xor ax,ax 
         mov al,dl 
         mov bl,10 
         div bl 
         mov dl,al 
         add dl,'0' 
         call Putch 
         mov dl,ah 
         add dl,'0' 
         call Putch 
         mov dl,'/' 
         call Putch 
  
         xor ax,ax 
         mov al,dh 
         mov bl,10 
         div bl 
         mov dl,al 
         add dl,'0' 
         call Putch 
         mov dl,ah 
         add dl,'0' 
         call Putch 
         mov dl,'/' 
         call Putch 
  
         mov ax,cx 
         mov bl,100 
         div bl 
         mov al,ah 
         xor ah,ah 
         mov bl,10 
         div bl 
         mov dl,al 
         add dl,'0' 
         call Putch 
         mov dl,ah 
         add dl,'0' 
         call Putch 

EndPageBIOS: 
         call Page_HitAnyKey 
         ret