Mail Archives: djgpp/1996/07/08/15:16:48
Xref: | news2.mv.net comp.os.msdos.djgpp:5738
|
From: | Jim Schwarz x3-7961 <schwarz AT escmail DOT orl DOT mmc DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Setpixel in AT&T inline asm....
|
Date: | Mon, 08 Jul 1996 12:21:21 -0400
|
Organization: | Martin Marietta - Information Systems
|
Lines: | 46
|
Message-ID: | <31E13581.C31@escmail.orl.mmc.com>
|
References: | <4rh0g5$m9r AT twain DOT mo DOT net>
|
NNTP-Posting-Host: | marino.orl.mmc.com
|
Mime-Version: | 1.0
|
To: | vecna AT Walden DOT mo DOT net
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi,
Here are a couple comments. You might want to check dj deloies sight
and following the tutorial pointers to the asm tutorial. Thats where
I got info when I started using AT&T syntax.
Jim
[vecna] wrote:
(Stuff Deleted)
> setpixel(int x, int y, char c)
> {
> asm("pushl %eax \n\t"
> "pushl %ebx \n\t"
> "pushl %edi \n\t"
>
> "movzx $_y, %eax \n\t"
> "imul $320, %eax \n\t"
> "movzx $_x, %ebx \n\t"
(more stuff deleted)
> The immediate problem being, it can't recognize movzx. I can't think of any
With AT&T this command is movzsd. Check the tutorial since I seem
to recall there might be a useages difference also. Also there is
some kind of comment on the imul command which I don't recall. You
can find info on that in machine dependencies section of the info
files.
> other alias this was be listed as... not to mention I'm really guessing here.
> There's probably tons of other flaws in this routine. (I really don't want to
> get into extended ASM just yet). Also, could someone confirm or correct me
> that a char is a byte, an int is 16 bits? (or is it 32?) geez, what I wouldn't
> give for db, dw, and dd right now.... oh well, thanks in advance.. :)
>
> =============================================================================
> [vecna] crs: code/music/design/www boingo/crs/eos/#lunar
> vecna AT mo DOT net www page: http://mo.net/~vecna nineinchnails/quake
> moo AT tss DOT survivor DOT org home of the nin music archive Eomar on #lunarRPG
> =============================================================================
--
James E. Schwarz, Jr. PE
Staff Systems Engineer - Armor Programs
Lockheed Martin Corporation Information Systems
12506 Lk Underhill Rd. MP 823 Orlando, Fla 32825
<schwarz AT escmail DOT orl DOT mmc DOT com> Voice: (407)826-7961
- Raw text -