Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To perform a reboot in DOS, all you

Status
Not open for further replies.

adholioshake

Programmer
Feb 9, 2003
136
To perform a reboot in DOS, all you need to do is jmp to location FFFFh:0000h. How do you do this ??
I did have some code for this, but I can't remember how to jump to that segment. Can anyone help?

Thanks, Adonai.
 
Don't worry, I've figured out some code:
Code:
code segment
  assume cs:code
  org 100h
program:
  mov ax,0040h
  mov es,ax
  mov es:0072h,1234h ; Warm boot
  db 0eah   ; jmp far
  dw 0000h  ; Offset
  dw 0ffffh ; Segment
code ends
end program
(Putting the opcodes as data means the assembler doesn't complain... :)).
I'm sure the 'retf' method would work too.

Adonai
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top