News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

JWasm13

Started by habran, May 22, 2015, 09:55:43 AM

Previous topic - Next topic

habran

Ur 2 good 2 be TRUE  :biggrin:
Cod-Father

TouEnMasm


I have a problem.

line 65        ;LOCAL ps:PAINTSTRUCT
uncomment the line 65,and see what happen
The start begin before the start label (exception)
Fa is a musical note to play with CL

habran

I don't think that this is Jwasm problem
Why do you mess with alignment?
Cod-Father

TouEnMasm


It is visual studio who show there is a problem with the start adress.
It begin at the end of WndProc.
I couldn't made code who do that.
Make a try.
Fa is a musical note to play with CL

TouEnMasm

More tests show that JWASM don't seem to accept more than three LOCAL in 64 bits for a proc
put one local in data,and there is no more problem.


Fa is a musical note to play with CL

johnsa

I constantly use loads more than 3 locals, I could have 10-20 even. I suspect the issue is the way you're starting..

I make a PROC

WinMainCRTStartup PROC FRAME USES rbx ....

for example.. The end directive then uses the proc name instead of a start label.
This assembles fine and the stack is right on start and you don't have to fiddle with rsp.

END_APP MACRO
   end WinMainCRTStartup
ENDM

So-far i'm not having any trouble with the latest jwasm including debugging 64bit in Visual studio.

John

habran

Thanks Johnsa :t
I am to busy at the moment with finishing AVX512 :dazzled:
I am almost done 8)
Give me one more week
Cod-Father

TouEnMasm

To johnsa
Could you a little sample,( an exit it's enough) and a batch file to build it ?
Thanks
Fa is a musical note to play with CL

TouEnMasm


Thanks for answers,I found finally what is wrong.
It miss FRAME after PROC and it is that who generate a bad start point.
Fa is a musical note to play with CL