Page 1 of 1
Posted: Mon Dec 28, 2009 10:26 pm
How to implement commands like "shutdown" and "restart" in assembly language?
In OsDev series appears at the end of code the line: "for (;;)" that left the system in a "standby" status,
but it isn't a "real" exit command.
Re: "shutdown" comand
Posted: Thu Dec 31, 2009 4:15 am
What you are requesting requires either the APM or ACPI. ACPI is recommended but fairly complicated. These links should help:
ACPI Official Page
ACPI example code and explanation of shut down
If you are wanting to stick with assembly language, and are in real mode, APM can be easier do to it being interfaces using BIOS interrupts:
Small APM Wiki Tutorial
Hope this helps
Re: "shutdown" command
Posted: Fri Jan 01, 2010 1:26 pm
Thanks for these links, you answered (concise and quickly) my question.
Much hard work to do...