WEB开发网
开发学院软件开发汇编语言 汇编源代码之硬盘保护锁 阅读

汇编源代码之硬盘保护锁

 2009-01-28 09:37:08 来源:WEB开发网   
核心提示:NEXT:MOV AX,0201H;读一扇区MOV CX,0001HMOV DX,0080HMOV BX,0F000HINT 13HMOV AX,0201HMOV CX,0001HMOV DX,0080HMOV BX,0E000HINT 13HMOV SI,0F1A0HMOV DI,OFFSET D1MOV CX,00

NEXT:

MOV AX,0201H;读一扇区

MOV CX,0001H

MOV DX,0080H

MOV BX,0F000H

INT 13H

MOV AX,0201H

MOV CX,0001H

MOV DX,0080H

MOV BX,0E000H

INT 13H

MOV SI,0F1A0H

MOV DI,OFFSET D1

MOV CX,0003H

REPE CMPSW

JNZ INSTALL

JMP DEL

INSTALL:

MOV DX,OFFSET D2

MOV AH,09H

INT 21H

ENTER:

INT 16H

OR AL,20H

CMP AL,'y';是Y?

JE INSTALL1

CMP AL,'n'

JE EXIT

JMP ENTER

EXIT:

MOV AH,4CH

INT 21H

INSTALL1:

MOV AH,3DH

MOV DX,OFFSET D3

MOV AL,00H

INT 21H

JB AERROR

PUSH AX

MOV AH,3FH

MOV DX,0F000H

MOV CX,01BEH

POP BX

INT 21H

MOV AH,09H
  MOV DX,OFFSET D10

INT 21H

MOV AH,00H

INT 16H

CALL NEAR PTR PWENTER

MOV SI,0F1B0H

MOV DI,0F3B0H

MOV CX,0004H

REPNZ MOVSW

MOV AH,06H

MOV AL,00H

MOV BH,07H

MOV CX,0000H

MOV DX,184FH

INT 10H

MOV DH,03H

MOV DL,00H

MOV BH,00H

MOV AH,02H

INT 10H

MOV AH,09H

MOV DX,OFFSET D11

INT 21H

MOV AH,00H

INT 16H

CALL NEAR PTR PWENTER

MOV SI,0F1B0H

MOV DI,0F3B0H

MOV CX,0008H

REPE CMPSB

JNZ EXIT4

JMP WRITE

AERROR:

MOV AH,09H

MOV DX,OFFSET D4

INT 21H

JMP EXIT

EXIT4:

MOV DH,03H

MOV DL,00H

MOV BH,00H

MOV AH,02H

INT 10H

MOV AH,06H

MOV AL,00H

MOV BH,07H

MOV CX,0000H

MOV DX,184FH

INT 10H

MOV AH,09H

MOV DX,OFFSET D12

INT 21H

MOV AH,4CH

INT 21H

WRITE:

MOV AX,0301H

MOV CX,0003H

MOV DX,0080H

MOV BX,0E000H

INT 13H

MOV BX,OFFSET D6

ADD BX,1B0H

MOV CX,4H

MOV SI,0F1B0H

MOV DI,BX

REPNZ MOVSW

MOV AX,0301H

MOV CX,0004H

MOV DX,0080H

MOV BX,OFFSET D6

INT 13H

MOV AX,0301H

MOV CX,0002H

MOV BX,0F000H

MOV DX,0080H

INT 13H

MOV AX,0301H

MOV CX,0001H

MOV BX,0F000H
  MOV DX,0080H

INT 13H

MOV AH,06H

MOV AL,00H

MOV BH,07H

MOV CX,0000H

MOV DX,184FH

INT 10H

MOV DH,03H

MOV DL,00H

MOV BH,00H

MOV AH,02H

INT 10H

MOV AH,09H

MOV DX,OFFSET D13

INT 21H

JMP EXIT

DEL:

MOV DX,OFFSET D7

MOV AH,09H

INT 21H

ENTER2:

MOV AH,00H

INT 16H

OR AL,20H

CMP AL,'y'

JE UNLADE

CMP AL,'n'

JE EXIT1

JMP ENTER2

EXIT1:

MOV AH,4CH

INT 21H

UNLADE:

上一页  1 2 3 4 5 6  下一页

Tags:汇编 源代码 硬盘

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接