www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/08/13:18:19

From: avly AT castle DOT net (An)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: The first problem (a horror series in 10 parts)
Date: Tue, 08 Oct 1996 00:12:39 GMT
Organization: The Castle Network, http://www.castle.net
Lines: 39
Message-ID: <53c6l1$2ed@arther.castle.net>
References: <539hek$6vf AT ranger DOT interlink DOT no>
Reply-To: avly AT castle DOT net
NNTP-Posting-Host: bridge49.castle.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

norsk AT interlink DOT no (Kim Robert Blix) wrote:

>Hi there.. I've just started to use djgpp. (Made hello world yesterday, and
>it was only 80kb hehe.) 

Heh =) Try compiling with the -s option to make it smaller.

>And I've encountered a problem..

>Why doesnt this work?:

>asm(" movw $13,%ax
>      int $10
>    ");

You must mean,

__asm__ __volatile__("
  movw $0x13, %ax\n
  int $0x10"
  : : : "ax"
);

A "safer" version:

__dpmi_regs r;
r.x.ax = 0x0013;
__dpmi_int( 0x10, &r );

>Thank you in advance.

>Kim Robert Blix.

Cheers,
An
http://remus.rutgers.edu/~avly/djgpp.html



- Raw text -


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