www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/24/13:15:43

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: SIGSERV Error
Date: Sat, 24 Apr 1999 14:41:31 -0300
Organization: BrunNet
Lines: 36
Message-ID: <3722024B.C8BA21EF@unb.ca>
References: <7fso1i$6of$1 AT nnrp1 DOT dejanews DOT com>
NNTP-Posting-Host: ftnts1c38.brunnet.net
Mime-Version: 1.0
X-Mailer: Mozilla 4.04 [en] (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

a2o1 AT my-dejanews DOT com wrote:

> I'm trying to learn assembly (AT&T) and I finally got a (what I thought was)
> simple switch screen code:
>
> __asm__ __volatile__("
>  movl $13, %%ax\n
>  int $10\n
> );
>
> but when I run the program I get a SIGSERV error...  This also occured with
> some code that I had downloaded for the Intel Assembly and converted to AT&T
> (It was a drawing routine).  Help!!!

    You should probably use the DPMI functions to deal with interrupts, it is
almost (with the exception of 0x19 under Win95) always better.  Here's how to do
it...

#include <dpmi.h>

void VidScreen()
{
  __dpmi_regs Regs;

  Regs.x.ax = 0x13;
  __dpmi_int(0x10, &Regs);
 }

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT BrunNet DOT Net
          Endlisnis AT HotMail DOT com
          ICQ: 32959047


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019