flat assembler
Message board for the users of flat assembler.

Index > Main > Masm addr to Fasm

Author
Thread Post new topic Reply to topic
mzabcdefgchina



Joined: 14 Jan 2015
Posts: 10
mzabcdefgchina 07 Jan 2016, 08:12
Statement in the following format:

invoke RtlZeroMemory,addr @stLVI,sizeof LV_ITEM

How to express in FASM?
Please make it macro
Post 07 Jan 2016, 08:12
View user's profile Send private message Reply with quote
jiangfasm



Joined: 08 Mar 2015
Posts: 60
jiangfasm 07 Jan 2016, 12:43
mzabcdefgchina wrote:
Statement in the following format:

invoke RtlZeroMemory,addr @stLVI,sizeof LV_ITEM

How to express in FASM?
Please make it macro


pro tst
local @stLVI:LV_ITEM
invoke RtlZeroMemory,addr @stLVI,sizeof.LV_ITEM
endp
Post 07 Jan 2016, 12:43
View user's profile Send private message Visit poster's website Reply with quote
sunnysigil



Joined: 18 Jun 2014
Posts: 6
sunnysigil 21 Jan 2016, 17:20
jiangfasm wrote:
mzabcdefgchina wrote:
Statement in the following format:

invoke RtlZeroMemory,addr @stLVI,sizeof LV_ITEM

How to express in FASM?
Please make it macro


pro tst
local @stLVI:LV_ITEM
invoke RtlZeroMemory,addr @stLVI,sizeof.LV_ITEM
endp


No need for addr keyword, also at least provide him with the sizeof macro or define it using
local @stLVI:LV_ITEM
local size_var = $ - @stLVI
Post 21 Jan 2016, 17:20
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.