I
import
Unregistered / Unconfirmed
GUEST, unregistred user!
原理是改 软驱马达 的转动时间! 程序就在《电脑报》1997合订本的第45页!
code segment
assume cs:code
start proc far
push es
push ax
push cx
push dx
mov dl,[bx]
and dl,0dfh
sub dl,41h
jy:mov ax,0401h
mov cx,0001h
mov dh,00h
int 13h
cmp ah,80h
jz nodisk
jmp exit
nodisk:mov ax,0040h
mov es,ax
mov ax,01h
mov es:[40h],ax
mov bx,0fh
wait0:mov cx,0ffffh
delay:loop delay
dec bx
jnz wait0
jmp jy
exitop dx
pop cx
pop ax
pop es
retf
start endp
code ends
end
code segment
assume cs:code
start proc far
push es
push ax
push cx
push dx
mov dl,[bx]
and dl,0dfh
sub dl,41h
jy:mov ax,0401h
mov cx,0001h
mov dh,00h
int 13h
cmp ah,80h
jz nodisk
jmp exit
nodisk:mov ax,0040h
mov es,ax
mov ax,01h
mov es:[40h],ax
mov bx,0fh
wait0:mov cx,0ffffh
delay:loop delay
dec bx
jnz wait0
jmp jy
exitop dx
pop cx
pop ax
pop es
retf
start endp
code ends
end