Page 1 of 1
"shutdown" comand
Posted: Mon Dec 28, 2009 10:26 pm
by marcos
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.
Thanks alot
Re: "shutdown" comand
Posted: Thu Dec 31, 2009 4:15 am
by Mike
Hello,
What you are requesting requires either the APM or ACPI. ACPI is recommended but fairly complicated. These links should help:
ACPI Official Page
ACPI Specification
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:
APM Specification
Small APM Wiki Tutorial
Hope this helps

Re: "shutdown" command
Posted: Fri Jan 01, 2010 1:26 pm
by marcos
Thanks for these links, you answered (concise and quickly) my question.
Much hard work to do...