FastReboot V1.0

Source: Internet
Author: User

Memory resident Keyboard activated quick Reset program, press CTRL-F10 can reboot DOS.
Source:
Code segment
Assume Cs:code,ds:code
Org 100h
BEGIN:JMP Init
ZD db ' FastReboot V1.0 zdsoft 1995 ', 0dh,0ah, ' $ '
Mes db ' press CTRL-F10 to fastreboot! ', 0dh,0ah, ' $ '
Mes1 db ' already install!$ '
INT9 DD?
Mark DB ' ZD '
New_int proc Far
STi
Push AX
Push ES
XOR Ax,ax
MOV Es,ax
In al,60h
Test al,80h
JNZ exit1
Test byte ptr es:[0417h],100b
JZ exit1
CMP al,68
JZ OK
JMP exit1
Ok:
Push AX
Push BX
Push CX
Push DX
Push BP
Push di
Push SI
Push DS
Push CS
Pop ds
In al,61h
Push AX
or al,80h
Out 61h,al
Pop ax
Out 61h,al
MOV al,20h
Out 20h,al
Call my
Pop ds
Pop si
Pop di
Pop bp
Pop DX
Pop CX
Pop bx
Pop ax
EXIT1:
Pop es
Pop ax
JMP Cs:int9
New_int ENDP
My proc near
int 19h
Ret
My ENDP
Init:
Cli
Push CS
Pop ds
MOV dx,offset ZD
MOV ah,9
int 21h
MOV ax,3509h
int 21h
CMP word ptr es:[bx-2], ' DZ '
JNZ Install
MOV Dx,offset mes1
MOV ah,9
int 21h
MOV ah,4ch
int 21h
Install
MOV Di,offset int9
mov [DI],BX
mov [di+2],es
Push CS
Pop ds
MOV Dx,offset new_int
MOV ax,2509h
int 21h
STi
mov dx,offset mes
MOV ah,9
int 21h
MOV dx,offset init
int 27h
Code ends
End begin

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.