flat assembler
Message board for the users of flat assembler.

flat assembler > Main > sizeof

Author
Thread Post new topic Reply to topic
Jin X



Joined: 06 Mar 2004
Posts: 54
Location: Russia
Is there a way to get size of something? Smile
Register, number, variable...

sizeof al = 1
sizeof eax = 4
sizeof var = 8 ; var rq 1
sizeof 1 = 1
sizeof 300 = 2
sizeof 0x123456 = 4
sizeof qword [ecx] = 8
Post 09 Jul 2018, 17:19
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6928
Location: Kraków, Poland
fasmg does have a "sizeof" operator (but the value needs to be set up appropriately when the symbol is defined), but fasm 1 has nothing like that, except for the "sizeof.FIELD" values defined by the "struct" macro that comes with standard Windows headers.
Post 09 Jul 2018, 17:23
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-2018, Tomasz Grysztar.

Powered by rwasa.