Аналіз загрузщіка BIOS та MBR, страница 5

-u f000:03b8 03e7

F000:03B8 BE0300        MOV          SI,0003                           

F000:03BB 33FF          XOR DI,DI                             

F000:03BD 0AD2          OR  DL,DL                             

F000:03BF 790A          JNS   03CB                              

F000:03C1 47            INC      DI                                

F000:03C2 B00E          MOV            AL,0E                             

F000:03C4 E8C3E5        CALL        E98A                              

F000:03C7 A808          TEST            AL,08                             

F000:03C9 7515          JNZ   03E0                              

F000:03CB 33C0          XOR AX,AX                             

F000:03CD CD13          INT  13                                

F000:03CF 720C          JB     03DD                              

F000:03D1 B80102        MOV          AX,0201                           

F000:03D4 CD13          INT  13                                

F000:03D6 730A          JNB  03E2                              

F000:03D8 80FC80        CMP           AH,80                             

F000:03DB 7403          JZ     03E0                              

F000:03DD 4E            DEC   SI                                

F000:03DE 75EB          JNZ  03CB                              

F000:03E0 F9            STC                                       

F000:03E1 C3            RET                                      

F000:03E2 E83500        CALL          041A                              

F000:03E5 72F6          JB      03DD                              

F000:03E7 C3            RET                                      

-

-

-

-u f000:041a 0446

F000:041A 53            PUSH  BX                                

F000:041B 51            PUSH  CX                                 

F000:041C 0BFF          OR    DI,DI                             

F000:041E 740A          JZ      042A                              

F000:0420 A1FE7D        MOV         AX,[7DFE]                         

F000:0423 3D55AA        CMP          AX,AA55                            

F000:0426 741C          JZ      0444                              

F000:0428 EB19          JMP  0443                              

F000:042A A1007C        MOV         AX,[7C00]                         

F000:042D 3C05          CMP AL,05                              

F000:042F 7612          JBE    0443                              

F000:0431 B90800        MOV           CX,0008                           

F000:0434 33DB          XOR BX,BX                             

F000:0436 87DB          XCHG          BX,BX                              

F000:0438 43            INC      BX                                

F000:0439 43            INC      BX                                

F000:043A 3B87007C      CMP        AX,[BX+7C00]                      

F000:043E E1F8          LOOPZ         0438                               

F000:0440 F8            CLC                                       

F000:0441 7501          JNZ    0444                              

F000:0443 F9            STC                                       

F000:0444 59            POP      CX                                 

F000:0445 5B            POP     BX                                

F000:0446 C3            RET                                       

-

-

-

-u f000:e98a e99a

F000:E98A 87DB          XCHG         BX,BX                             

F000:E98C E670          OUT 70,AL                             

F000:E98E E300          JCXZ            E990                              

F000:E990 E300          JCXZ E992                              

F000:E992 87DB          XCHG          BX,BX                             

F000:E994 E471          IN      AL,71                             

F000:E996 E300          JCXZ E998                              

F000:E998 E300          JCXZ E99A                              

F000:E99A C3            RET                                      

-q

Висновки :