汇编源代码之硬盘保护锁
2009-01-28 09:37:08 来源:WEB开发网核心提示:MOV AH,4CHINT 21HOVERFLOW:MOV DH,10HMOV AH,02HMOV DL,23HMOV BH,00HINT 10HMOV AH,09HMOV AL,00HMOV BL,07HMOV CX,0009HINT 10HJMP GETPWBACKSPACE:PUSH CXMOV AH,03HMO
MOV AH,4CH
INT 21H
OVERFLOW:
MOV DH,10H
MOV AH,02H
MOV DL,23H
MOV BH,00H
INT 10H
MOV AH,09H
MOV AL,00H
MOV BL,07H
MOV CX,0009H
INT 10H
JMP GETPW
BACKSPACE:
PUSH CX
MOV AH,03H
MOV BH,00H
INT 10H
POP CX
CMP DL,23H
JE READKEY
CMP DI,0F1AFH;
JE READKEY
PUSH CX
MOV AH,02H
DEC DL
INT 10H
POP CX
PUSH CX
MOV AH,0EH
MOV AL,00H
MOV BL,07H
INT 10H
POP CX
MOV AX,0000H
MOV [DI],AX
DEC DI
MOV [DI],AX
CMP CX,09H
JE AJUMP
INC CX
JMP AJUMP
AJUMP:
JMP READKEY
PWENTER ENDP
CODE ENDS
END START
该程序用来将HDLOCK.DAT文件写到MBR区,有兴趣的朋友可以试试。
更多精彩
赞助商链接