Displaying 1 result from an estimated 1 matches for "apm_en".
Did you mean:
rpm_en
2005 Sep 17
2
com16/com32 module for APM powerdown
...msg_apmver
; connect to APM
apm 1, 0, 0
jnc apmc
; try to break any other connection
apm 4, 0, 0
; try again
apm 1, 0, 0
jnc apmc
; connection error
print msg_apm_error_connect
jmp exit
; apm connected
apmc:
print msg_apm_connected
mov cx, [apm_version]
cmp cx, 0x0101
jl apm_enable
; report driver version
apm 0xe, 0, cx
jnc apm_enable
print msg_apm_vreport_err
; must enable apm bios?
apm_enable:
mov cx, [apm_flags]
and cx, 0x4
jz apm_off
; enable apm bios
apm 8, 1, 1
jc apm_off
print msg_apm_enabled
; send shutdown command
apm_off:
apm 7, 1, 3
jn...