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
"shutdown" comand
Moderator:Moderators
--
marcOS
marcOS
Re: "shutdown" comand
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
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

Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
Re: "shutdown" command
Thanks for these links, you answered (concise and quickly) my question.
Much hard work to do...
Much hard work to do...
--
marcOS
marcOS