source: trunk/AIR-BOOT/SOURCE/SPECIAL/APM.ASM@ 11

Last change on this file since 11 was 8, checked in by kiewitz, 23 years ago

Added AiR-BOOT Images and support for other languages.
Note: This comment was created after rebuilding the repo. [2011-07]

File size: 1.6 KB
Line 
1
2; Disclaimer:
3;=============
4; The sourcecode is released via www.netlabs.org CVS *ONLY*.
5; You MUST NOT upload it to other servers nor republish it in any way.
6; The sourcecode is still COPYRIGHTED and NOT YET RELEASED UNDER GPL.
7; It's (c) Copyright 1998-2002 by Martin Kiewitz.
8; You may recompile the source and do *PRIVATE* modifications, but please keep
9; in mind that modifying this code needs at least *some* assembly skill. If
10; you mess up your system, because you needed to hack your way through, don't
11; blame me. Releasing a customized version of AiR-BOOT, selling it in any form
12; or reusing parts of this source is *PROHIBITED*. Ask me, if you have some
13; idea about new functionality *before* developing the code, otherwise I will
14; definitely reject it. Also please accept, that I have some basic design
15; rules on AiR-BOOT and I will maintain them at all costs, so this won't get
16; another GRUB.
17
18;---------------------------------------------------------------------------
19; AiR-BOOT / APM SUPPORT
20;---------------------------------------------------------------------------
21
22; Here is APM Code to turn off the computer
23
24APM_TurnOffComputer Proc Near Uses ax bx cx
25 mov ax, 5301h
26 xor bx, bx
27 int 15h
28 mov ax, 530Eh
29 xor bx, bx
30 mov cx, 102h
31 int 15h
32 mov ax, 5307h
33 mov bx, 1
34 mov cx, 3
35 int 15h
36 ret ; We should never return here <g>
37APM_TurnOffComputer EndP
Note: See TracBrowser for help on using the repository browser.