i am thinking about a new syntax / macro that works like current include
the problem is like this,
eg, we wish to make our asm code module base, (so, to use other fasmer module, we just need to include 1 file, the module file then we can start coding)
eg,
memory module,
so inside that file got code functions and we define some global variables that must exists if we want to use this module.
if using what i know now, it means, i need to separate them into 2 files.
memory-data.inc
and memory-func.inc
and in the data main file,
include 'memory-data.inc'
then in the code section
include 'memory-func.inc'
which is troublesome (imo)
if we got a new include that able to combine separated "DATA" & "FUNCTION" into their should be section, that would be awesome.
maybe
<DATA>
memv1 dd 0
memv2 dd 0
</DATA>
<CODE>
proc memblabla1
endp
proc memblabla2
endp
</CODE>
all in 1 file.
|