From: Frank Kotler <fbkotler@comcast.net>
To: Lauri Pihlajakangas <lpihlajak@gmail.com>
Cc: linux-assembly@vger.kernel.org
Subject: Re: Problems with OpenGL asm program.
Date: Fri, 12 Aug 2005 15:31:12 -0400 [thread overview]
Message-ID: <42FCF900.7000609@comcast.net> (raw)
In-Reply-To: <9b9a53ad050812100027b53687@mail.gmail.com>
Lauri Pihlajakangas wrote:
...
> fild dword [esp+20] ;width
> fild dword [esp+24] ;height
> sub esp,8
> fdiv st1, st0
> fstp qword [esp] ; BUG?
Looks like the "result" is in st1, and you store st0? Perhaps try "fdivp"?
...
> sub esp,32
> fldz
> fst qword [esp]
> fst qword [esp]
> fst qword [esp]
> fstp qword [esp]
> call glClearColor
> add esp, 32
Here, you seem to be storing the result in the same place 4 times.
Probably want "fst qword [esp]"/"fst qword [esp + 8]"/"fst qword [esp +
16]", etc. ???
...
> fild dword [esp+20] ;width
> fild dword [esp+24] ;height
> sub esp,8
> fdiv st1, st0
> fstp qword [esp] ; BUG?
As above...
I don't have a clue about GL, but those look "suspicious" to me... Hope
it helps.
Best,
Frank
next prev parent reply other threads:[~2005-08-12 19:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 17:00 Problems with OpenGL asm program Lauri Pihlajakangas
2005-08-12 19:31 ` Frank Kotler [this message]
2005-08-13 10:01 ` Lauri Pihlajakangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42FCF900.7000609@comcast.net \
--to=fbkotler@comcast.net \
--cc=linux-assembly@vger.kernel.org \
--cc=lpihlajak@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.