1. Reboot...

Hy,

I got a small problem with something.
I want to reboot my machine within a EU programm,
I've used the machinestring:
rebootstr={234,0,0,255,255,195}-- ReBoot String (RET (195) isn't
                                --  needed actually)
                                -- db EAh       234 -->
                                --  Goto adress
                                --  (Next four bytes):65535
                                -- dw 0000h     00      --> 0
                                -- dw FFFFh     255 255 --> 65535
But when I put this in memory and call it, EU crashes because
of a CauseWay Error. But when I do a system() call to the fileversion
REBOOT.COM, which contains exactly the same string, the computer does
reboot.
EU crashes in both DOS and WIN when allocate() and even when allocate_low()
is used.
Why is this happening, could it be fixed somehow, maby using another way?
Is there also a way to accomplish a reset-reboot with INT 19h


Thanks,
PQ

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view message » categorize

2. Re: Reboot...

I think what you are forgeting is that Euphoria ( DOS and WINDOWS )

  is running in protected mode and what you are doing is crashing the

  Causeway and window DPMI system.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Reboot...

Eu does this because you're literally crashing the computer. Maybe it would
be better to suggest making a temporary .COM file. But then, they could soon
clutter up the hard disk...

new topic     » goto parent     » topic index » view message » categorize

4. Re: Reboot...

There's also a better way to reboot. If I can remember, I think the code is
JMP FAR 0040:0072(that's in hex)

You can set the value at that memory position to 1234H for a warm reboot,
or something else for a cold reboot(the kind like when you turn on your PC)

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu