"shutdown" comand

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

Moderator: Moderators

"shutdown" comand

Postby 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
marcos
 
Posts: 3
Joined: Mon Dec 28, 2009 9:19 pm
Location: Barcelona, Spain

Re: "shutdown" comand

Postby 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
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Re: "shutdown" command

Postby 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
User avatar
marcos
 
Posts: 3
Joined: Mon Dec 28, 2009 9:19 pm
Location: Barcelona, Spain


Return to Beginners

Who is online

Users browsing this forum: No registered users and 1 guest

cron