flat assembler
Message board for the users of flat assembler.

Index > Windows > At the announcement of procedure there is a mistake of perfo

Author
Thread Post new topic Reply to topic
pas



Joined: 16 Aug 2003
Posts: 17
Location: Russia
pas 22 Aug 2003, 22:44
At the announcement of procedure there is a mistake of performance of the program
proc OutToPrinter,colsubkat,lpsubkat
.count dd 0
.countKat dd 0
.x dd 0
.lpKat dd 0
.CurAd dd 0
.EndKat dd 0
.char db 0
.firs dd 0
enter
........................
invoke Rectangle,[printDC],[CurrX],[CurrY],1050,65; Here there is a mistake
........................
return
If instead of:
proc OutToPrinter,colsubkat,lpsubkat
.count dd 0
.countKat dd 0
.x dd 0
.lpKat dd 0
.CurAd dd 0
.EndKat dd 0
.char db 0
.firs dd 0
enter
.........
To replace on
proc OutToPrinter,colsubkat,lpsubkat
.count dd 0
.countKat dd 0
.x dd 0
enter
......
All works why? Fasm 1.48
Inside procedure the conclusion to the printer is carried out and the change of fonts.
Post 22 Aug 2003, 22:44
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 29 Aug 2003, 20:18
That must be due to the stack misalignment (you allocate the variable of 1 byte size on it, and it has to be dword-aligned); but that's strange, as 1.48 has updated the stdcall.inc with the corrected "enter" macro, which should align the stack for you. Maybe you are using old version of macros?
Post 29 Aug 2003, 20:18
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.