flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > fasm1: if someone want replace std datadefs

Author
Thread Post new topic Reply to topic
ProMiNick



Joined: 24 Mar 2012
Posts: 798
Location: Russian Federation, Sochi
ProMiNick 28 Jan 2023, 23:34
Code:
struc dword val:?& {
if . eqtype mov
        . dword val
else if [val] eqtype [0 dup (0)] | [val] eqtype [0 dup (?)] | [val] eqtype [0 dup] | [val] eqtype [0 dup ?] | [val] eqtype [0 dup 0]
        Error: extra characters on line
else
        . dd val
end if}

a dword 1,2
b dword
;c dword 0 dup ; disabled syntax
;d dword 1 dup ?
;e dword 1 dup 0
;f dword 1 dup (?)
;g dword 1 dup (0)

        xor dword[0], eax ; not overrided for instructions
        stos dword[edi]    

_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.
Post 28 Jan 2023, 23:34
View user's profile Send private message Send e-mail 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.