News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Recent posts

#11
The Campus / Re: Stack management and para...
Last post by zedd151 - Today at 08:13:54 AM
Quote from: mulu64 on Today at 07:38:53 AMThank you, but it's the gcc compilation of the C code that was in first post. It seems to use 32 bits part of registers (optimisation of compiler ?).
It just seemed odd to me. But I could be wrong. I have been known to be wrong once or twice.  :tongue:

@NoCforMe, I have requested already that this be moved, as it might be better served there.
#12
The Campus / Re: Stack management and para...
Last post by NoCforMe - Today at 08:04:52 AM
There's a Linux forum here: perhaps that would be a better place for this topic? (Most of the discussions here are about x86/x64 code, so this is kind of an outlier.)
#13
The Workshop / Re: gdiplus tests
Last post by NoCforMe - Today at 07:46:38 AM
OK; so now we come to the matter of image quality. Does GDI or GDI+ yield the better image quality? Especially if the image is stretched?

I know that some rendering techniques result in really crappy images, but I can't remember exactly which ones those were.
#14
The Campus / Re: Stack management and para...
Last post by mulu64 - Today at 07:38:53 AM
Thank you, but it's the gcc compilation of the C code that was in first post. It seems to use 32 bits part of registers (optimisation of compiler ?).
I will use gdb tomorrow on this, i'm on my phone for now.
#15
The Campus / Re: Re: TransparentBlt Example...
Last post by zedd151 - Today at 07:29:48 AM
No, the dialog box window style in the .rc file was fine.

This issue is really driving me nutz!  :biggrin:
Both the latest 'resize and center using AdjustWindowRect' version, and the original 'homemade resize and center' version attached.
#16
The Campus / Re: Stack management and para...
Last post by zedd151 - Today at 07:14:04 AM
Upon taking a quick second look at your code, you are indexing rbp at 4 byte increments. [rbp-4], [rbp-8], [rbp-12], etc.
That is wrong, this much I can tell you. 64 bit registers are 8 bytes, not 4. Beyond that I cannot offer much help otherwise.
#17
The Campus / Re: Stack management and para...
Last post by zedd151 - Today at 05:42:46 AM
I am not sure if it makes any difference for your example, but it might.
Thanks.
I myself don't have sufficient knowledge of 64 bit, or stack manipulations in 64 bit.

In Windows programming with the Masm64 SDK, when we use 'invoke' to call a procedure, all of the stack management is handled without needing to fiddle with the stack at all (as long as 4 arguments or less) the first 4 arguments are passed in rcx, rdx, r8, and r9. Also, 'shadow space' is taken care of as well.

For Linux, this may be (and probably is) different.
We have a couple of members that use Linux as their primary operating system and may be able to help you with this, mabdelouahab and I think jack.
#18
The Campus / Re: Stack management and para...
Last post by mulu64 - Today at 05:38:07 AM
Quote from: zedd151 on Today at 05:35:57 AMI had seen your posting in the Linux board.
Is this for Linux or Windows?

It is for Linux.
#19
The Campus / Re: Stack management and para...
Last post by zedd151 - Today at 05:35:57 AM
I had seen your posting in the Linux Assembly board.
Is this for Linux or Windows?
#20
The Orphanage / Re: Ambition
Last post by daydreamer - Today at 05:18:03 AM
Sometimes I get an idea and write down unfinished code anywhere, but too many coding ideas and other ideas too, 3d graphics, fantasy novel, seldom make a poem, too little time to finish all projects at home on my pc.
I sometimes enjoy sit in library writing and sometimes sketching too, or on train /buses when I commute, that helps me write down my ideas before I forget it and fast concept art sketch for artwork ideas.

Right now busy with less advanced things than coding, writing new parts of fantasy novel while I get ideas to write and translate to swedish, making a pic that shows how main mage character looks like.

Isn't it called "round robin", switching between working on many different things all the time?