News:

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

Main Menu

Playtime with ML64 and a question on spill space.

Started by hutch--, June 23, 2016, 01:52:21 PM

Previous topic - Next topic

habran

Cod-Father

HSE

Hi fearless!

Quote from: fearless on June 24, 2016, 09:51:55 AMI also started a port of some of the functions from the masm32.lib for x64 a while ago: https://bitbucket.org/LetTheLightIn/masm64-library

Is that a dead project?

Thanks, HSE.
Equations in Assembly: SmplMath

fearless

#47
I moved it over to github: https://github.com/mrfearless/libraries/tree/master/Masm64

But I have not added anything to it since then I think or maybe one or two extra functions. Of course anyone can contribute on github or suggest other inclusions or functions that should be added or updated or post code here for inclusion/addition/corrections to the library.

I mainly created it for myself when doing some of the x64 stuff as it was easier to port code and not have to worry about missing functions etc, i could just change a few things (registers, params etc) and rename '32' to '64' when including the masm inc and lib and hit compile. For the most part the params and returns are the same (prob 95% of the functions that have been ported over) but there might be a few that take extra params etc


HSE

Quote from: fearless on November 13, 2023, 11:07:57 AMI moved it over to github: https://github.com/mrfearless/libraries/tree/master/Masm64

I saw that.

But Masm32Lib have around 238 functions, and you have around 35.

My hope was that I was searching in the wrong place  :biggrin:

It's not clear for me why Hutch only translate half of the library. Perhaps in 32 bits there was no plan neither.

Thanks.
Equations in Assembly: SmplMath

fearless

Quote from: HSE on November 13, 2023, 12:56:37 PMBut Masm32Lib have around 238 functions, and you have around 35.

Yes, I only ported the functions I needed at the time.

I can move the project so that it is on its own repository, so that any one can contribute to it. Also it could be renamed: Asm64.lib, A64.lib, U64.lib or whatever, suggestions are welcome.

Where there any particular functions you where looking for?

HSE

Quote from: fearless on November 13, 2023, 10:22:12 PMYes, I only ported the functions I needed at the time.

:thumbsup:

Quote from: fearless on November 13, 2023, 10:22:12 PMI can move the project so that it is on its own repository, so that any one can contribute to it. Also it could be renamed: Asm64.lib, A64.lib, U64.lib or whatever, suggestions are welcome.

Fantastic. That could be "Masm64.lib: A fearless' curated repository"  :thumbsup:

Quote from: fearless on November 13, 2023, 10:22:12 PMWhere there any particular functions you where looking for?

Just some days ago I translated a couple: ClearScreen and locate, so elementals but missing. Along time there was a couple more.
Equations in Assembly: SmplMath

fearless

Whilst in the process of doing some coding for some current upcoming projects: applications, libraries, controls etc, I recalled this post and took a break from those projects to spend some time on this. Initially I was just going to create a repo and upload what was already the Masm64.lib contents, but after some thought I decided to go over it and change a few things.

I decided to name it UASM64 Library as having it named as Masm64.lib gave the impression that it could be built with ML64. As it is targeted towards using UASM x64 it made sense to name it that. Other compilers and assemblers should be able to use the library though.

I also decided to rename some of the functions for greater readability, and the same with parameter names. There are equates for those coming from x86 using the masm32 library names, to help with porting or for those that prefer those names.

I also added some cpu functions whilst I was at it. And also created a readthedocs page that auto builds the documentation for the UASM64 Library, which will allow viewing the documentation online, or by downloading as a pdf, chm or epub for offline viewing.

I haven't got round to all the functions, just some. Also the conversion functions I haven't settled on a name yet. Provisionally I had thought to prefix them with Convert_ and then some info like StringDecToDWORD etc, but I am open to suggestions about any of the naming of functions, as it can be changed.

There is a basic test radasm project included to test some of the functions created so far - some, not all are currently in the test application.

https://github.com/mrfearless/UASM64-Library

I might post this somewhere else rather than have the discussions appended to this topic.