flat assembler
Message board for the users of flat assembler.

Index > Main > [idea] include that able to merge data & code in main so

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 9130
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
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.
Post 18 Jun 2012, 16:33
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17664
Location: In your JS exploiting you and your system
revolution
Post 18 Jun 2012, 16:44
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 9130
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
idk how to understand & comprehend those deep stuffs Sad
Post 18 Jun 2012, 17:07
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17664
Location: In your JS exploiting you and your system
revolution
See the last code box in the first post. It appears to be exactly what you asked for.
Post 18 Jun 2012, 17:28
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.