The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: hutch-- on July 10, 2016, 06:34:29 PM

Title: A question for Habran/Nidud.
Post by: hutch-- on July 10, 2016, 06:34:29 PM
I was interested to see if HJWASM and Nidud's version can use the include files that Vasily designed. The libraries should be no problem as they are the same as normal Microsoft libraries as well as Pelle's libraries. With qWord's suggestion changing the "extern" to "externdef" the includes/libraries work OK with ML64.

Would either work with the format,


    externdef functionname:PROC
Title: Re: A question for Habran/Nidud.
Post by: habran on July 10, 2016, 07:54:27 PM
It can work fine with call, however, invoke needs prototype
There is a difference between ML64 the macro invoke you are using and HJWasm invoke, because HJWasm checks parameters while the other one doesn't
Title: Re: A question for Habran/Nidud.
Post by: hutch-- on July 10, 2016, 08:33:05 PM
What a shame, its a lot more work to produce an exhaustive list of prototypes. I gather the libraries would be no problem.
Title: Re: A question for Habran/Nidud.
Post by: habran on July 10, 2016, 08:58:21 PM
I can see that you world is upside down, where good is bad and bad is good, no wander why, we are upside down here in OZ, I have been here only 24 years, maybe not long enough to catch up that perception :biggrin:
It would be possible to make it work in bad way, however, I am not gonna do it 8)
I remember the scene from Groundhog Day when Phil (Bill Murray) says to Ned (Stephen Tobolowsky) : "I would love to have a cup of coffee with you, but I am not gonna do it."
Title: Re: A question for Habran/Nidud.
Post by: nidud on July 10, 2016, 09:12:42 PM
deleted
Title: Re: A question for Habran/Nidud.
Post by: nidud on July 10, 2016, 09:36:06 PM
deleted
Title: Re: A question for Habran/Nidud.
Post by: hutch-- on July 10, 2016, 11:21:15 PM
It was more a comment that its easy enough to do a full set of include files for something as crude as ML64 as it has no type or size checking. Its not a problem for my generation as manual coding was normal but I do see that advantage of at least argument count checking for people who do not have that background. It was easy enough to get the argument count in STDCALL functions from the win32 libraries but the win64 libraries use a different notation so there is no an easy technique to get the argument count.
Title: Re: A question for Habran/Nidud.
Post by: rrr314159 on July 10, 2016, 11:47:44 PM
Quote from: hutch-- on July 10, 2016, 06:34:29 PM
I was interested to see if HJWASM and Nidud's version can use the include files that Vasily designed. The libraries should be no problem as they are the same as normal Microsoft libraries as well as Pelle's libraries. With qWord's suggestion changing the "extern" to "externdef" the includes/libraries work OK with ML64. Would either work with the format,

    externdef functionname:PROC

Quote from: habran on July 10, 2016, 07:54:27 PM
It can work fine with call, however, invoke needs prototype
There is a difference between ML64 the macro invoke you are using and HJWasm invoke, because HJWasm checks parameters while the other one doesn't

turn off the keyword "invoke" and use Vasily's invoke macro instead of the HJWasm invoke