Author Topic: Stack issues  (Read 256 times)

aw27

  • Member
  • ****
  • Posts: 709
Stack issues
« on: July 20, 2017, 12:11:18 AM »
A few stack related issues:

Code: [Select]
; x64

option casemap:none

.code

proc1 proc
ret
proc1 endp

main proc

; Stack is not realigned on entry

invoke proc1

ret
main endp

end ;main

end

COMMENT &
proc1
00000001`3ffa1000 4883c408   add     rsp,8 <- ????????????????????????
00000001`3ffa1004 c3              ret
main
               Stack is not realigned on entry
00000001`3ffa1005 4883ec20   sub    rsp,20h
00000001`3ffa1009 e8f2ffffff     call    test+0x1000 (00000001`3ffa1000)
00000001`3ffa100e 4883c420   add    rsp,20h
00000001`3ffa1021 4883c408   add    rsp,8 <- ????????????????????
00000001`3ffa1025 c3              ret
&

johnsa

  • Member
  • ****
  • Posts: 525
    • Uasm
Re: Stack issues
« Reply #1 on: July 20, 2017, 06:06:48 PM »
Hi,

This one is already fixed in 2.38 which will be out soon :)

aw27

  • Member
  • ****
  • Posts: 709
Re: Stack issues
« Reply #2 on: July 20, 2017, 06:30:36 PM »
Hi,

This one is already fixed in 2.38 which will be out soon :)
:t

johnsa

  • Member
  • ****
  • Posts: 525
    • Uasm
Re: Stack issues
« Reply #3 on: July 26, 2017, 10:56:47 PM »
2.38 for (win32 and win64) is up, please test :)

jj2007

  • Member
  • *****
  • Posts: 7558
  • Assembler is fun ;-)
    • MasmBasic
Re: Stack issues
« Reply #4 on: July 26, 2017, 11:35:18 PM »
Spits loads of errors: \masm32\include\windows.inc(20234) : Error A2279: EVEX encoding not enabled. Use option evex directive?

johnsa

  • Member
  • ****
  • Posts: 525
    • Uasm
Re: Stack issues
« Reply #5 on: July 27, 2017, 12:50:12 AM »
Found the issue, due to improvements in the handling of evex instructions which use { } has caused this regression, will fix and update asap.

johnsa

  • Member
  • ****
  • Posts: 525
    • Uasm
Re: Stack issues
« Reply #6 on: July 27, 2017, 05:40:04 PM »
Packages are updated on the site, dated today the 27th. Please try again.

Thanks,
John

jj2007

  • Member
  • *****
  • Posts: 7558
  • Assembler is fun ;-)
    • MasmBasic
Re: Stack issues
« Reply #7 on: July 27, 2017, 11:31:24 PM »
Thanks, now it works perfectly, tested on 1.5MB of sources :t