beautypg.com

Allegro cpu done function (allegro_cpudone) – Juniper Systems Allegro DOS Manual User Manual

Page 123

background image

Allegro DOS Owner’s Manual 123

Allegro CPU Done Function (Allegro_CpuDone)

This function is called to restore the Power Manager to the normal
state after a CPU busy call.

void Allegro_CpuDone (void)
{
_asm

{

push

ax

push

bx

mov

ax,

2E0Bh

mov

bl, 1

// setup regs for function call

int 10h

// call cpu done function

pop

bx

pop

ax

}

}