home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / utility / bootex10.zip / REBOOT.ASM < prev    next >
Assembly Source File  |  1992-04-11  |  825b  |  27 lines

  1. ; Program : Reboot.asm
  2. ; Author  : Jenn-Hwa Guan --> MIS Hawk
  3. ; Using TASM.EXE , TLINK.EXE
  4. ; To show the right way to reboot
  5. ; Bitnet  : U432660@twncu865.Bitnet
  6. ; Internet : Hawk@s825.ncu.edu.tw  or hawk@[140.115.80.1]
  7. ;
  8.  
  9.         .model small
  10.         .data
  11. restart         label   dword
  12.     db    4 dup (?)
  13.         .code
  14. main:   mov     ax,@data
  15.         mov     ds,ax
  16.         mov     bx,-1                           ; segment CS:FFFF
  17.     mov    es,bx
  18.     mov    bx,3
  19.         mov     dx,word ptr es:[bx]             ; offset 0003
  20.     mov    bx,1
  21.         mov     ax,word ptr es:[bx]             ; offset 0001
  22.         mov     word ptr restart+2,dx           ; indicate the restart address
  23.         mov     word ptr restart,ax
  24.         call    dword ptr restart               ; do reboot by restart address
  25.         end main
  26.     end
  27.