delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/15/05:22:48

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE30143A3DE@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: mxx macros
Date: Tue, 15 Jun 1999 10:22:32 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

Cory Brown writes:
> Hey there all, I did a web search to try and find machine language/macros
> for MMX so that I could use them in DJGPP inline assembly (or for .s files
> if it's not simple to do this for inline) and came up short, so I was just
> wondering if someone could send me in the right direction?

The latest version of binutils supports MMX directly, so you can just write
these opcodes in the normal way. If you want to use other extension opcodes
like the 3DNow! or PIII vector instructions, you will have to find out the
binary encoding of these commands, and use .byte directives to output them
directly. You should be able to find info about the binary formats on the
Intel website.

The Allegro polygon rendering code (scanline.s or iscan.s depending what
version you have) contains some examples of doing this for the 3DNow!
instructions. This code is by Calin Andrian (calin AT ibd DOT dbio DOT ro), who I
don't think reads this group, but he probably wouldn't mind answering a
few questions if you get really stuck.


	Shawn Hargreaves.

- Raw text -


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