Author Topic: Re: May 20, update.  (Read 813 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1391
    • EditMasm
Re: May 20, update.
« Reply #15 on: July 03, 2020, 03:46:00 PM »
Quote
No, that's easy to do, what I had in mind was your own includes for win64 would be useful to the folks who want to use UASM.
Here,I am a little lost.
I have re-compiled my IDE (32) with my headers and with UASM without a problem.
For 64 bits ,I have made further little prog using UASM and my headers without a problem.

With my headers,to use UASM ,You need to download the package and include the SDK64.inc ,That's all.
Where is the problem ?
Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1391
    • EditMasm
Re: May 20, update.
« Reply #16 on: July 03, 2020, 05:09:30 PM »

To be more clear,here is a sample using my headers http://luce.yves.pagesperso-orange.fr/header.htm
I have re-took the messagebox 64 bits provided by UASM and added a messagebox using the headers
As i say,you add "include sdk64.inc" and all is done.
You can put in comment the useless things (externdef ...)
ML64 is like a dinosaure if we compare it with UASM.
What is simple to use,must stay simple.
Fa is a musical note to play with CL

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7607
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: May 20, update.
« Reply #17 on: July 03, 2020, 05:45:32 PM »
 :biggrin:
Quote
ML64 is like a dinosaure if we compare it with UASM.
What is simple to use,must stay simple.
Sure is, that's why I use it, clean, simple and reliable.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

TouEnMasm

  • Member
  • *****
  • Posts: 1391
    • EditMasm
Re: May 20, update.
« Reply #18 on: July 03, 2020, 07:42:58 PM »

in 64 bits
The new crt need to add some defines.
The ucrt and msvcrt lib must be include

the EXTRN   __imp__i64toa:PROC is in use instead of _i64toa
_i64toa equ <__imp__i64toa> create a symbol redifinition with _i64toa PROTO cproto :QWORD ,:XMASM ,:DWORD
any idea  to contnue using the invoke ?

Fa is a musical note to play with CL

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7607
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: May 20, update.
« Reply #19 on: July 03, 2020, 08:31:57 PM »
In MASM I use the following.

externdef __imp__i64toa:PPROC
vc__i64toa equ <__imp__i64toa>

Unless you use a consistent prefix, you get naming conflicts. The above works perfectly.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

TouEnMasm

  • Member
  • *****
  • Posts: 1391
    • EditMasm
Re: May 20, update.
« Reply #20 on: July 04, 2020, 04:05:14 PM »

The msvcrt.inc(64) work ,it's good
It use the original msvcrt.dll,It's good
It allow  functions to have any number of arguments,it's no good.
Is there a way to use a dynamic load of the functions ?.

Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1391
    • EditMasm
Re: May 20, update.
« Reply #21 on: July 05, 2020, 01:25:31 AM »

  and now the simple way to use the new CRT with UASM and the translated SDK.
You need only the two crt libraries who allow you to link statically with the New CRT and the OPTION PROC:NONE.
THAT'S ALL
The sample convert 500h in radix(base) 10
As you use the translated SDK,you are prompted in case of syntax errors
Fa is a musical note to play with CL