"shutdown" comand

If you are new to development, plan on spending some time here before visiting the other forums.

Moderator: Moderators

Post Reply
User avatar
marcos
Posts: 3
Joined: Mon Dec 28, 2009 9:19 pm
Location: Barcelona, Spain

"shutdown" comand

Post by marcos » 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.


Thanks alot
--
marcOS

User avatar
Mike
Site Admin
Posts: 465
Joined: Sat Oct 20, 2007 7:58 pm
Contact:

Re: "shutdown" comand

Post by Mike » Thu Dec 31, 2009 4:15 am

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 :)
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

User avatar
marcos
Posts: 3
Joined: Mon Dec 28, 2009 9:19 pm
Location: Barcelona, Spain

Re: "shutdown" command

Post by marcos » Fri Jan 01, 2010 1:26 pm

Thanks for these links, you answered (concise and quickly) my question.


Much hard work to do...
--
marcOS

Post Reply