flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Assign a name to a line of code |
Author |
|
LocoDelAssembly 15 Oct 2010, 19:41
Code: struct sMyStruct p1 dd 0 p2 dd 0 ends struct1 sMyStruct virtual at struct1 this sMyStruct end virtual mov [this.p1], 0 ; WORKS! |
|||
15 Oct 2010, 19:41 |
|
baldr 15 Oct 2010, 23:19
alorent,
Are you trying to overwrite part of mov [this.p1], 0 instruction with 0? This works: Code: struct sMyStruct p1 dd 0 p2 dd 0 ends struct1 sMyStruct virtual this sMyStruct end virtual mov [this.p1], 0 |
|||
15 Oct 2010, 23:19 |
|
alorent 16 Oct 2010, 05:47
Thanks guys!
I have tried to make a set of macros to simulate basic OO (Objected Oriented) programming, with the idea of making things more "organized" in assembly and better programming. I have realized that at the end I will make the code more obscure and dirty as assembly is what it is, assembly So I was going to get the opposite of my main objective (clarity, better coding). Well, hopefully someone will make in FASM something that is really OO coding and not something that makes things more obscure Thanks! |
|||
16 Oct 2010, 05:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.