flat assembler
Message board for the users of flat assembler.

Index > Windows > Learning Win32 programming

Goto page Previous  1, 2, 3
Author
Thread Post new topic Reply to topic
Inagawa



Joined: 24 Mar 2012
Posts: 153
Inagawa
Hi there folks,

I've been working on the Iczelion's tutorials in my spare time (up to tut10, now) and I've been wondering if I should maybe
divert my attention to learning 64 bit. I have searched this forum (painfully) and found this topic - where
MazeGen kindly posted some links. This happened way back in 2006 though, so I'd just like to know if you guys think
it's clever to start with 64bit with my skillset, and if you think I should, if the links there are still viable for learning 64bit,
or if you've got some better ones.

Thanks a lot

Edit:

I've been reading the links from the topic and I've come across this.

Example of argument passing 3 – mixed ints and floats
func3(int a, double b, int c, float d);
// a in RCX, b in XMM1, c in R8, d in XMM3

This got me confused, shouldn't it be // a in RCX, b in XMM0,c in RDX, d in XMM1?

Or is it just decided by position? Meaning that ONLY the first four arguments are passed in registers and the rest by stack even if the function takes 4 ints and 4 floats and there would be enough registers to hold them without a problem?

Image
Post 23 May 2012, 11:13
View user's profile Send private message Reply with quote
Xorpd!



Joined: 21 Dec 2006
Posts: 161
Xorpd!
Yes, just by position. All further arguments are passed on the stack.
You might as well go x64; it's easier than 32-bit because there is only one calling convention.
Intel's manuals are good, but I can't find a link to anything current on their complicated web site.
Agner Fog's manuals have calling conventions and instruction latencies and throughputs.
Jeremy Gordon's documentation is very useful IMO.
Post 23 May 2012, 20:35
View user's profile Send private message Visit poster's website Reply with quote
Inagawa



Joined: 24 Mar 2012
Posts: 153
Inagawa
Thanks a lot for the encouragement! I'll check these things out
Post 23 May 2012, 20:50
View user's profile Send private message Reply with quote
Inagawa



Joined: 24 Mar 2012
Posts: 153
Inagawa
Hello, can I ask a question about import?

I want my macro to import the QueryPerformanceFrequency, but it's telling me that the symbol is already defined. How do I import a function in another file when the main library/import stuff has already been done in the main file?
Thanks
Post 28 May 2012, 17:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3

< 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-2020, Tomasz Grysztar.

Powered by rwasa.