I do:
Code: Select all
int 0x19
Code: Select all
int 0x19
Code: Select all
db 0xEA
dw 0x0000
dw 0xFFFF
Now, my OS locks up when I do "reboot". I can send you the source code and floppy I use. In fact, I'll attach it:JohnnyTheDon wrote:The easiest (and most effective) way is through the keyboard controller
I love you!!!! It reboots!kay10 wrote:You could try something like this:This is a far jump to a BIOS function to reboot the system when I'm right.Code: Select all
db 0xEA dw 0x0000 dw 0xFFFF
EDIT: too slow...
EDIT 2: I think this method might only work in real mode
The easiest way to stop a car is to run it into a tree. Not recommended either.earlz wrote:I always thought the easiest way to reboot(in protected mode) was to trash the IDT, then divide by zero.. triple-fault==reboot.
That's not a function to reboot the BIOS, it's the BIOS itself. That's what gets ran once you turn your PC on. However, it might not be a good idea to do things this way; The BIOS may expect a certain state for hardware and you're not going to have that by jumping into the BIOS initialization code. It's sort of like re-executing the MBR (provided it's still in the rightful memory location); you'll still have the same video mode (say graphics), etc. Some of the things probably won't affect you very much (the video mode is likely to change properly unless you're using DOS in which case you won't see anything).kay10 wrote:You could try something like this:This is a far jump to a BIOS function to reboot the system when I'm right.Code: Select all
db 0xEA dw 0x0000 dw 0xFFFF
EDIT: too slow...
EDIT 2: I think this method might only work in real mode