The MASM Forum Archive 2004 to 2012

Specialised Projects => Pelle's Macro Assembler Development => Topic started by: Vortex on July 12, 2009, 01:00:13 PM

Title: Mixing C functions and X64 assembly functions
Post by: Vortex on July 12, 2009, 01:00:13 PM
Example by Pelle :

http://www.smorgasbordet.com/pellesc/sample_x64_c.htm
Title: Re: Mixing C functions and X64 assembly functions
Post by: mitchi on July 12, 2009, 01:30:05 PM
Good stuff.
Title: Re: Mixing C functions and X64 assembly functions
Post by: ecube on July 31, 2009, 02:34:15 AM
thanks but


x64_call_to_c_func proc public uses rbx rdi n:dword parmarea = (4 * sizeof qword)


that's confusing and ridiculous
Title: Re: Mixing C functions and X64 assembly functions
Post by: mitchi on July 31, 2009, 04:15:35 AM
Quote from: E^cube on July 31, 2009, 02:34:15 AM
thanks but


x64_call_to_c_func proc public uses rbx rdi n:dword parmarea = (4 * sizeof qword)


that's confusing and ridiculous

I think it's more like the guy wants to show off the capabilities of his assembler. Understandable.
Title: Re: Mixing C functions and X64 assembly functions
Post by: ecube on July 31, 2009, 06:58:43 AM
fair enough, he's obviously worked hard on poasm and pelle C, and thread wasn't about using poasm mainstream so I retract my previous statement and in the future will keep such comments to myself.