Author Topic: m64 Library Update  (Read 519 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6389
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
m64 Library Update
« on: May 27, 2019, 12:02:07 PM »
This is the latest version of the 64 bit MASM library. It has a number of fixes done and some new modules. There are 5 "parse#" modules for parsing command lines and a module called "monospace_args" that is designed to clean up a list of arguments. The documentation has not yet caught up with the new modules.

Copy the unzipped files into the m64lib directory over writing existing modules and then run the "makeit.bat" file to build the new library.

You will need to copy the latest macro file into the "macros64" directory as well.
« Last Edit: May 28, 2019, 01:26:50 AM by hutch-- »
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

felipe

  • Member
  • *****
  • Posts: 1200
  • Eagles are just great!
Re: m64 Library Update
« Reply #1 on: May 28, 2019, 12:34:00 AM »
Thanks hutch, it's nice to have so many 64 bits assembly sources at hand  :thumbsup:  :azn:. I got two error in the assembly process:
Quote
GetClipboardText.asm(41) : error A2008:syntax error : cst
SetClipboardText.asm(31) : error A2008:syntax error : cst

I was thinking if there is a way of using the bat's commands to measure timmings in the whole process, if so it would be nice to add that to makeit.bat and compare results here.

Any idea about those 2 errors? Thanks.  :thup:
Felipe.

felipe

  • Member
  • *****
  • Posts: 1200
  • Eagles are just great!
Re: m64 Library Update
« Reply #2 on: May 28, 2019, 01:17:18 AM »
I can't find where cst is defined. I searched  in the main includes, including the one of macros without luck. I was lazy first, then i looked the code, now i will be patient waiting for a reply  :azn:
Felipe.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6389
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: m64 Library Update
« Reply #3 on: May 28, 2019, 01:24:04 AM »
Sorry about that, its a macro so I have attached the later macro file up on the first post.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

felipe

  • Member
  • *****
  • Posts: 1200
  • Eagles are just great!
Re: m64 Library Update
« Reply #4 on: May 28, 2019, 01:39:21 AM »
No problem hutch and thanks for the quick help!  :thup: :thup:
Felipe.

felipe

  • Member
  • *****
  • Posts: 1200
  • Eagles are just great!
Re: m64 Library Update
« Reply #5 on: May 28, 2019, 02:04:02 AM »
Now it worked just fine  :thumbsup:  I have added this 2 lines of code in the .bat makeit.bat file just to try to measure the time it takes to build the library. It's a pretty unsophisticated method since you have to do the math by yourself:

Code: [Select]
@echo off
echo start time %Time%
.
.
.
echo end time %Time%
pause

Unfortunately i forgot the time it took on my computer so i can't post it by now... :tongue:
Felipe.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6389
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: m64 Library Update
« Reply #6 on: May 28, 2019, 08:12:56 AM »
 :biggrin:

Whoever said that pure assembler was not simple.


; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

    include \masm32\include64\masm64rt.inc

    .code

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

 entry_point proc

    USING r12

    SaveRegs

    mov r12, rvcall(GetTickCount)
    rcall winshell,"makeit.bat",NORMAL_PRIORITY_CLASS
    rcall GetTickCount
    sub rax, r12
    rcall cpDiv,rax,1000
    conout "Build time = ",str$(rax)," seconds",lf

    waitkey
    RestoreRegs
    .exit

 entry_point endp

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

    end
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: