delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/09/08:50:02

From: sime AT fly DOT cc DOT fer DOT hr (Simun Mikecin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Inline ASM Help
Date: 9 Jun 1997 11:12:26 GMT
Organization: etf
Lines: 26
Distribution: world
Message-ID: <5ngoeq$23n@bagan.srce.hr>
References: <339ACE21 DOT 6BCC AT prodigy DOT net>
Reply-To: sime AT fly DOT cc DOT etf DOT hr
NNTP-Posting-Host: fly.cc.etf.hr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

ACosand (ACosand AT prodigy DOT net) wrote:
: I'm trying to use the following inline asm code in djgpp, but I'm
: afraid that I can't figure out how from the docs and the FAQ.  If any
: one could show me how to do this, it would be greatly appreciated

: Aaron Cosand

: inline AstFixedpoint_t AstFixMulFix( AstFixedpoint_t a, AstFixedpoint_t
: b )
: {
: AstFixedpoint_t result;

:   mov  eax, a
:   mov  ebx, b
:   imul ebx
:   shrd eax, edx, 16
:   mov  result, eax

:   return result;
: }

You should read FAQ and info pages carefully since all is explained there.

--
                                         // E-mail: smikecin AT bigfoot DOT com
                                        // URL:     http://fly.cc.fer.hr/~sime

- Raw text -


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