Author Topic: UASM 2.56 is available  (Read 536 times)

lucho

  • Regular Member
  • *
  • Posts: 14
Re: UASM 2.56 is available
« Reply #15 on: October 28, 2022, 06:17:24 PM »
macOS binary attached.

lucho

  • Regular Member
  • *
  • Posts: 14
Re: UASM 2.56 is available
« Reply #16 on: October 28, 2022, 06:21:12 PM »
FreeBSD binary attached.

lucho

  • Regular Member
  • *
  • Posts: 14
Re: UASM 2.56 is available
« Reply #17 on: October 28, 2022, 06:24:23 PM »
Solaris binary attached.

johnsa

  • Member
  • ****
  • Posts: 889
    • Uasm
Re: UASM 2.56 is available
« Reply #18 on: October 28, 2022, 10:30:56 PM »
Big thanks for the archives! I will package those up and add them to the site!

I had though about ARM/ARM64 support before, it's so fundamentally different and UASM has so much x86 specific stuff in it that we might as well build a totally new assembler for it. That would be a big job, and I have to say the existing ARM assemblers are awful, it could certainly be made a lot easier with a decent ASM that has proper invoke/HLL/stack-frame support etc.

TimoVJL

  • Member
  • *****
  • Posts: 1223
Re: UASM 2.56 is available
« Reply #19 on: October 28, 2022, 11:39:22 PM »
Big thanks John
Its important to have an UAsm, to share best ways for special purboses, where C won't ever serve in best way :thumbsup:
May the source be with you

mineiro

  • Member
  • ****
  • Posts: 864
Re: UASM 2.56 is available
« Reply #20 on: November 15, 2022, 08:28:17 AM »
Hello sir johnsa; I faced a problem.
Code bellow worked in version 255 but not in 256, please, can you check. Thanks.
Linux x86_64, stack unbalanced.
Code: [Select]
;uasm -elf64 test.asm
;gcc test.o -no-pie -fno-pie -lc -o test
;./test
.X64
option casemap:none

InitializeRandoms proto
srand proto :dword
exit proto :dword

.code
main proc uses rbx rbp r12 r13 r14 r15 _argc:dword,_argv:ptr

local argc:dword
local argv:ptr

mov argc,_argc
mov argv,_argv

invoke InitializeRandoms
invoke exit,0
main endp

;-------------------------------------------------------------
;no locals
align 16
InitializeRandoms proc
;sub rsp,8 ok
    invoke srand,4711
    ;add rsp,8 !!!    <--------------|
ret
InitializeRandoms endp
;-------------------------------------------------------------

end main
I do not have a github account, so, I'm posting here.
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

johnsa

  • Member
  • ****
  • Posts: 889
    • Uasm
Re: UASM 2.56 is available
« Reply #21 on: November 16, 2022, 04:48:55 AM »
Thanks, will check it out. I made some changes to correct a few other issues with Linux stack balancing, so this might be a regression there.

mineiro

  • Member
  • ****
  • Posts: 864
Re: UASM 2.56 is available
« Reply #22 on: November 16, 2022, 07:17:34 AM »
Thank you sir johnsa;
I'd rather be this ambulant metamorphosis than to have that old opinion about everything