reboot pc under DOS - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

reboot pc under DOS

edridiledridil Posts: 14Member
What I have to do is reboot the pc working under DOS (not with CTRL-ALT-DEL!!) and using MASM (I have to use MASM..)

How can I do?
I found int 19h, is this all?

Comments

  • ASHLEY4ASHLEY4 Posts: 254Member
    @)
    ASHLEY4.
  • CPU MasterCPU Master Posts: 48Member
    : What I have to do is reboot the pc working under DOS (not with CTRL-ALT-DEL!!) and using MASM (I have to use MASM..)
    :
    : How can I do?
    : I found int 19h, is this all?
    :
    Why do you have to use MA$M? Just wondering...
  • edridiledridil Posts: 14Member
    :
    : Why do you have to use MA$M? Just wondering...
    :

    It's for an exam, and this is what the prof. wants, that's all
  • Luke7Luke7 Posts: 156Member
    : What I have to do is reboot the pc working under DOS (not with CTRL-ALT-DEL!!) and using MASM (I have to use MASM..)
    :
    : How can I do?
    : I found int 19h, is this all?
    :

    Are you aware that the code won't work in a DOS box.
  • edridiledridil Posts: 14Member
    : : What I have to do is reboot the pc working under DOS (not with CTRL-ALT-DEL!!) and using MASM (I have to use MASM..)
    : :
    : : How can I do?
    : : I found int 19h, is this all?
    : :
    :
    : Are you aware that the code won't work in a DOS box.
    :

    I know, thanks ;)
  • theresajaynetheresajayne Posts: 3Member
    I have not done it for a while but int 19 would sometimes crash the machine so we moved to the following code which programatically performs a reboot

    MOV AL,0Fh
    OUT 64H,AL

    4 bytes to rule them all and in the darkness Reboot them....

    We saved this as reboot.com :)

    Theresa
  • theresajaynetheresajayne Posts: 3Member
    I have not done it for a while but int 19 would sometimes crash the machine so we moved to the following code which programatically performs a reboot

    MOV AL,0Fh
    OUT 64H,AL

    4 bytes to rule them all and in the darkness Reboot them....

    We saved this as reboot.com :)

    Theresa
  • theresajaynetheresajayne Posts: 3Member
    I have not done it for a while but int 19 would sometimes crash the machine so we moved to the following code which programatically performs a reboot

    MOV AL,0Fh
    OUT 64H,AL

    4 bytes to rule them all and in the darkness Reboot them....

    We saved this as reboot.com :)

    Theresa
Sign In or Register to comment.