flat assembler
Message board for the users of flat assembler.

Index > Windows > File Creation

Author
Thread Post new topic Reply to topic
Hutley



Joined: 12 Feb 2006
Posts: 6
Hutley
i created a file .txt. Now i want add 5 lines inside it. In 3ยบ line i need to add a string and the content of esi. The question is: How i add a string with esi content?
Post 16 Jun 2006, 16:19
View user's profile Send private message Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi
See MSDN for wsprintf, remember that it uses C-calling convention so you should 'sub esp,(4*number_of_pushes_before_calling)' after the call.
Post 16 Jun 2006, 21:39
View user's profile Send private message MSN Messenger Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Actually you must use
'ADD esp,(4*number_of_pushes_before_calling)' or
'sub esp,-(4*number_of_pushes_before_calling)'
Post 16 Jun 2006, 23:46
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.