| delorie.com/archives/browse.cgi | search |
| From: | Cesar Rabak <csrabak AT uol DOT com DOT br> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Odp: Turning off monitor ? |
| Date: | Sat, 26 May 2001 12:54:23 -0300 |
| Lines: | 20 |
| Message-ID: | <3B0FD1AF.56767424@uol.com.br> |
| References: | <3 DOT 0 DOT 1 DOT 32 DOT 20010523120828 DOT 006b3ad4 AT wingate> <3B0D50EC DOT 80EBC0A9 AT cyberoptics DOT com> <9eof0d$6tg$1 AT info DOT cyf-kr DOT edu DOT pl> |
| NNTP-Posting-Host: | 200-221-14-196.dsl-sp.uol.com.br (200.221.14.196) |
| Mime-Version: | 1.0 |
| X-Trace: | fu-berlin.de 990892702 446067 200.221.14.196 (16 [39218]) |
| X-Mailer: | Mozilla 4.76 [en] (Win98; U) |
| X-Accept-Language: | pt-BR,es,en |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Rafal Maj 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);
> //...
> }
>
Why didn't you check the result in AL (r.x.al) and AH (r.x.ah)?
Also, what is the return of a call with BL (r.x.bl) zeroed?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |