From: "Traveler" Newsgroups: comp.os.msdos.djgpp Subject: Little question about inline assembly & BIOS routines... Date: Sun, 18 Feb 2001 15:31:15 +0200 Organization: SAUNALAHDEN asiakas Lines: 18 Message-ID: <96ohkv$p4k$1@tron.sci.fi> NNTP-Posting-Host: mdcxlvi.hdyn.saunalahti.fi X-Trace: tron.sci.fi 982501855 25748 195.197.41.146 (18 Feb 2001 13:10:55 GMT) X-Complaints-To: newsmaster AT saunalahti DOT fi NNTP-Posting-Date: 18 Feb 2001 13:10:55 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com void SetMode(BYTE mode) { __asm__ __volatile__ ("movb $0x00,%%ah; movb %0,%%al; int $0x10" : :"g"(mode) :"ax"); // Is this neseccary ??? Does the BIOS routines save the state of registers before } // proceeding ? traveler AT netti DOT fi Dark DOT Angel AT saunalahti DOT fi "Traveler2001AD"