Password for identification.
Modify the Main Boot Program of the hard disk and add a segment of the password recognition program before guiding the DOS operating system. If the password is correct, the system will be guided normally. Otherwise, the system will reject the boot to identify the password.
5. resident memory programs prior to dos.
Install some interrupt service programs in the main
| ------------------------------------------------ ||01ed | partition information 3 (16 bytes) |01ee | ------------------------------------------------ ||01fd | partition information 4 (16 bytes) || ---------------------------------------------- || 01fe | 01ff || 55 | AA || ---------------------------------------------- |
Figure 1: Structure of the main guide sector
The Master Boot Record contains a ser
loader and kernel.
The Code is as follows:
Org 0100 h; com format
; Org 07c00h
MoV ax, CS
MoV ds, ax
MoV es, ax
Call printstr
JMP $
Printstr:
MoV ax, helloworld
MoV bp, ax
MoV CX, 24
MoV ax, 01301 H
MoV BX, 000ch
MoV DL, 0
Int 10 h
RET
Helloworld: DB "Welcome to Lee's OS *_*";
Times 510-($-$) db 0
DW 0xaa55
I will not explain the code. It does take some compilation basics to understand it.
But now I want to simplify this bootsector because it is easier to understand simple things. The follo
Now, more and more users began to use a key U-disk system, compared to the traditional CD-ROM or the form of access to resources on the network, the U disk installation system seems to appear more humanized design, at least, we do not have to worry about the network media will be wrong, the media on the network whether there is a virus class problem. However, in the process of using a USB flash drive system, we will inevitably encounter problems, such
Security experts recently confirmed that a new type of virus, Shamoon, will scan Windows PCs. Like the Flame virus, Shamoon can directly send data from infected users' computers to the network, after the data is transmitted, the computer's data is maliciously deleted permanently, even including the Master Boot Record, which directly causes system paralysis and ca
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.