flat assembler
Message board for the users of flat assembler.

Index > Windows > Function return 64 bit value. In which registers ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1795
Roman 29 Dec 2017, 08:25
My program 32 bit.
Function glGetTextureHandleARB return 64 bit value.
My question.
In which registers return value ?
I mean low part -> EAX
And high part -> EBX

Or value store in stack ?


Last edited by Roman on 29 Dec 2017, 10:41; edited 1 time in total
Post 29 Dec 2017, 08:25
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1795
Roman 29 Dec 2017, 08:43
In c++ example:
GLuint64* result = glGetTextureHandleARB(texture);
Post 29 Dec 2017, 08:43
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 2505
Furs 29 Dec 2017, 13:29
High part is in EDX.

However your example shows GLuint64*, which is a pointer, so only EAX. But maybe you had that wrong.
Post 29 Dec 2017, 13:29
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1795
Roman 29 Dec 2017, 13:59
Yes. EAX=low and EDX=high.
I tested.
Now work fine.
Post 29 Dec 2017, 13:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.