Mail Archives: djgpp/2001/05/28/01:00:10
On Saturday, May 26, 2001 8:06 PM, Rafal Maj [SMTP:maj_rafal AT poczta DOT onet DOT pl]
wrote:
| :( Tih doesn't work either in DOSbox or in plain DOS :
|
| #include <dpmi.h>
| #include <dos.h>
| int main() {
| __dpmi_regs r;
| r.x.ax = 0x4F10;
| r.x.bx = 0x01 + 4<<8;
| __dpmi_int (0x10, &r);
| // mode: 0=on, 1=standby, 2=suspend, 4=off.
| delay(6000);
| //...
| }
See AX=5307h/INT15h in the Ralf Brown Interrupt list. That should help.
--
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/
- Raw text -