1
{ This example demonstrates the use of the flag constants in
2
conjunction with an interrupt call
4
In detail it checks if APM (advanced power management) is
7
Int 15h 5300h - APM specification : Installation check
9
BX = device id of system BIOS (= 0000h)
10
Return : Carry clear if successful
11
AH = major version (BCD)
12
AL = minor version (BCD)
22
{ set register values and issue real mode interrupt call }
26
{ check if carry clear and write a suited message }
27
if ((r.flags and carryflag)=0) then begin
28
Writeln('APM v', (r.ah and $f), '.',
29
(r.al shr 4), (r.al and $f), ' detected');
31
Writeln('APM not present');
b'\\ No newline at end of file'