Displaying 1 result from an estimated 1 matches for "msg_notsup".
2009 May 04
3
[RFC][PATCH] poweroff COMBOOT module
...00h)
+ xor bx,bx ; APM BIOS (0000h)
+ int 15h
+ jnc check_sig
+
+ mov bx, msg_notpresent
+ jmp error
+
+check_sig:
+ cmp bx,504Dh ; signature 'PM'
+ je check_ver
+
+ mov bx, msg_notpresent
+ jmp error
+
+check_ver:
+ cmp ax,0101h ; Need version 1.1+
+ jae check_state
+
+ mov bx, msg_notsup
+ jmp error
+
+check_state:
+ test cx,8 ; bit 3 APM BIOS Power Management disabled
+ jz connect
+
+ mov bx, msg_pmdisabled
+ jmp error
+
+connect:
+ mov ax,5301h ; APM Real Mode Interface Connect (01h)
+ xor bx,bx ; APM BIOS (0000h)
+ int 15h
+ jnc connect_ok
+
+ mov bx, msg_connect
+ jm...