Yes, in NASM. No, in MASM. And this is MASM syntax, as evidenced by the OFFSET keyword, but you tagged it NASM, so which do want to know?
– harold
Hello @harold i'm programming in nasm thats why i tagged nasm. I wanted to know how to do this masm code in nasm and what offset flat:base mean.
– Weigel Gram
1 Answers
8
votes
Yes, mov dword [ebp - 16], base should be fine. I haven't seen offset flat: for a while - I think it's obsolete, but it's what AT&T's idea of .intel_syntax used to demand (I had to look at Gas's source code to find that out). Means the same as offset to Masm, or the unadorned variable name in Nasm.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
OFFSET
keyword, but you tagged it NASM, so which do want to know? – harold