beautypg.com

Subfunction: al = 01h (pan right), Subfunction: al = 02h (pan up), Subfunction: al = 03h (pan down) – Juniper Systems Allegro DOS Manual User Manual

Page 127: Subfunction: al = 04h (pan xy - text mode only), Subfunction: al = 07h (suspend allegro), Subfunction: al = 0ah (get allegro status byte), Subfunction: al = 0bh (set cpu busy/done)

background image

Allegro DOS Owner’s Manual 127

Subfunction: AL = 01h (pan right)
Pans screen right. If screen is at rightmost limit, no action is taken.
Returns nothing.

Subfunction: AL = 02h (pan up)
Pans screen up. If screen is at top of 25 row virtual display, no action
is taken. Returns nothing.

Subfunction: AL = 03h (pan down)
Pans screen down. If screen is at bottom of 25 row virtual display, no
action is taken. Returns nothing.

Subfunction: AL = 04h (pan xy - text mode only)
Locates the upper left corner of display window to row/column
specifi ed on the virtual 80x25 display. Call with BH=row,
BL=column. Range of row/column values depends on font size. The
display window must be contained within 80 x 25 virtual display.
(0,0) is top left corner. Returns nothing.

Subfunction: AL = 06h (pc card power while in suspend)
Determines whether to leave PC Card powered when the system is
suspended or to turn power off. Some cards may draw substantial
current even when suspended and may need to be powered down
during suspend so the Allegro’s batteries are not drained.

Call with:

BL=00h

return current setting in AL

BL=01h

power off during suspend

BL=02h

power on during suspend (default)

Subfunction: AL = 07h (suspend Allegro)
Suspends the Allegro to low power suspend state and remains there
until a valid wakeup event occurs. Calling this function is identical
to pressing the On/Off key when the system is in suspend/resume
mode. Returns nothing.

Subfunction: AL = 0Ah (get Allegro status byte)
Returns status bye in AL where:

b7-b1

=

reserved

b0

=

power manager setting 1=on, 0=off

Subfunction: AL = 0Bh (set cpu busy/done)
Applications should set CPU busy when a block of processing needs
to be performed. CPU busy overrides power manager and keeps the
CPU running fast for as long as it is set. CPU done should be called
after CPU busy to tell the CPU that processing is complete and the
Allegro can return to a lower power state.