flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
decard
I'm not sure, but it seems that the stack pointer should be 4-byte aligned. In real (16-bit) mode it should work ok). In 32-bit you should align to dword anything that you put on the stack. I'm not exactly sure why, but it is
![]() |
|||
![]() |
|
roticv
I think decard is right. The stack should be aligned to dword as far as possible.
|
|||
![]() |
|
vid
in docs it is writen exactly as decard and roticv told: stack SHOULD be aligned to dword. Nothing about why / what happens if not (of course that some extra processor clocks are taken, but no reason for bug).
Stack is very dangerous to play with (or use in some slightly instandard) under windoze. just some note: stack aligning is nicely done with "and" instruction: Code: and esp,align_size - 1 |
|||
![]() |
|
Tommy
Thanks!
![]() /Tommy |
|||
![]() |
|
Tommy
Well, thanks guys... That problem is now fixed... May I ask you for another favour?
![]() ![]() (The bug occurs while registering the window class)... Sorry if this is a bit off-topic, but... ![]() /Tommy
|
|||||||||||
![]() |
|
roticv
If you ask me, your code is wrong...
I think it should be if (RegisterClass(wc)==0) { ShowError("Could not register window class!"); } |
|||
![]() |
|
Tommy
It is...
![]() ![]()
|
|||||||||||
![]() |
|
Tommy
Forget it... I solved the problem... Thanks anyway! Thanks for all help!
![]() Cheers, Tommy |
|||
![]() |
|
Tommy
Hi again guys!
Once again I have a problem related to the Win32 PE format... Why doesn't the attached executable work?? ![]() ![]() ![]() Regards, Tommy
|
|||||||||||
![]() |
|
roticv
Doesn't work as in? It does work on my win2k though.
|
|||
![]() |
|
Tommy
Hmm..
![]() ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.