Allegro get keystroke function (allegro_getch()), Allegro cpu busy function (allegro_cpubusy) – Juniper Systems Allegro DOS Manual User Manual
Page 122
122 Allegro DOS Owner’s Manual
Allegro Get Keystroke Function (Allegro_Getch())
The following function can be used to put the Allegro to sleep while
waiting for a keystroke.
char Allegro_Getch(void)
{
while(!kbhit())
// do sleep function until key is pressed
{
_asm
{
push ax
push bx
mov
ax,
2F19h
mov bl,
10000000b //load
regs
for
sleep
call
int 10h
//call
sleep
function
pop bx
pop ax
}
}
return(getch());
}
Allegro CPU Busy Function (Allegro_CpuBusy)
This function overrides the Power Manager and causes the CPU to
enter a high power state. It remains in this state until the Allegro_
CpuDone function is called. It is used to temporarily speed up the
CPU when data needs to be processed rapidly.
void Allegro_CpuBusy (void)
{
_asm
{
push
ax
push
bx
mov
ax,
2E0Bh
mov
bl, 0
// setup regs for function call
int 10h
// call cpu busy function
pop
bx
pop
ax
}
}
▲
▲
- Allegro 2 Quick Start (1 page)
- Allegro 2 User Guide (119 pages)
- I/O module Allegro 2 (1 page)
- A2 Ethernet Dock (2 pages)
- A2 Ethernet Multi Dock (2 pages)
- Allegro MX User Guide (96 pages)
- Allegro MX Quick Start (1 page)
- AMXU GPS Expansion Pod (12 pages)
- Allegro Top Mounting Bracket (4 pages)
- Holux M-215+ for Allegro (2 pages)
- Holux GR-213 for Allegro (2 pages)
- Trimble Lassen GPS Expansion Pod (11 pages)
- Barcode Expansion Pod (22 pages)
- USB/Power Dock Pogo Pin (1 page)
- 12449 Alkaline (1 page)
- Allegro DAQ (28 pages)
- Allegro Desiccant Kit (5 pages)
- Allegro CX and CE Bluetooth CF Card (32 pages)
- Allegro CX Manual (304 pages)
- Allegro CX Quick Start (6 pages)
- Allegro DOS Manual (274 pages)
- Allegro DOS Quick Start (4 pages)
- Allegro DOS Quick Start (2 pages)
- Allegro CE Manual (292 pages)
- Allegro CE Quick Start (2 pages)
- Archer 2 User Guide (1 page)
- Archer 2 User Guide (133 pages)
- Archer 2 Quick Start (1 page)
- I/O module Archer 2 (1 page)
- Bumper kit Archer 2 (1 page)
- Handstrap kit Archer 2 (1 page)
- ikeGPS (16 pages)
- Archer Quick Start (2 pages)
- Archer Reference Guide (153 pages)
- Archer User Manual (384 pages)
- XF101 (2 pages)
- Travel Charger for the Ultra-Rugged Field PC (8 pages)
- Field PC Cap Replacement (1 page)
- Replacing the Communications Module on the Field PC (2 pages)
- ltra-Rugged Field PC Extended Caps (16 pages)
- Socket Bluetooth Card (6 pages)
- Mesa User Guide (112 pages)
- Mesa Addendum (1 page)
- Mesa Quick Start (2 pages)