Displaying 1 result from an estimated 1 matches for "check_sig".
Did you mean:
check_sip
2009 May 04
3
[RFC][PATCH] poweroff COMBOOT module
...syslinux-3.80-pre7/modules/poweroff.asm
@@ -0,0 +1,86 @@
+ absolute 0
+pspInt20: resw 1
+pspNextP: resw 1
+ resb 124
+pspCmdLen: resb 1
+pspCmdArg: resb 127
+
+ section .text
+ org 0x100
+
+_start:
+ mov ax,5300h ; APM Installation Check (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...