Mail Archives: djgpp/1999/04/24/13:15:43
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 -