flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [F1] MULTISECTION .code .data .stream (update on first post) Goto page Previous 1, 2, 3, 4 Next |
Author |
|
macomics 23 Apr 2022, 22:28
1) Would you like to add RIP, RFL and at least 64 bytes from [RSP] to your complete error information?
2) Are you trying to make the code as unreadable as possible? Mixing code with data already makes it difficult to read. You've already placed a lot more here. |
|||
23 Apr 2022, 22:28 |
|
Overclick 23 Apr 2022, 22:52
macomics wrote: 1) Would you like to add RIP, RFL and at least 64 bytes from [RSP] to your complete error information? 1) I want to add a lot of info, even memory mapping, some day. It is not important at the moment. 2) It is just example. My code is more than readable as it have all data close to it, if needed. Don't you say C#/+ unreadable where data defined exactly before functions, as usual? Current stream directives needed for macros only, to make one macro for a lot of different things: complete different structures and past some code at same time, for example. |
|||
23 Apr 2022, 22:52 |
|
macomics 23 Apr 2022, 23:34
Overclick wrote: Don't you say C#/+ unreadable where data defined exactly before functions, as usual? In code that actively uses global variables after some development time, it can be difficult to find a place to declare such a variable. After a couple of months, you will simply forget that the global variable was declared in a particular text and you will have to read it for a one. In MASM or TASM you had to declare external to define the names used. Names are declared within a single binary block .obj. For fasm, you will have to actively compose long comments or you will constantly come up with new names because there are already such. I don't care about .code and .data, but it seems to me that you are already too absorbed. Leave the lite version with a minimal set of "directives". |
|||
23 Apr 2022, 23:34 |
|
Overclick 24 Apr 2022, 00:20
Quote:
It is not source at all.It's testing. Ofcource I don't write like that. Quote:
Actually IDE shows me position of any "forgoten" data if its name mixed up or needed to be find. The "problem" is for FASM users only, don't you think? We don't need it if we don't have it? Quote:
Not sure for that, but any way who care? Quote:
So what do you doing here? Do you have any example of perfect coding of huge projects by simple past subprograms by only single macros? I have such, and my .namespace is different from fasmg but lets me to past it without any worry of name mixing. Even that ShowERROR macro writen by one macro only and can be used multiple times in different parts of code. Ofcourse it can be updated to full windowed applicaton later to help me debug my projects. And even of that I will have no problem of mixing of anything as I've done my Multisections additional directives.
|
||||||||||
24 Apr 2022, 00:20 |
|
macomics 24 Apr 2022, 01:00
Overclick wrote: The "problem" is for FASM users only, don't you think? We don't need it if we don't have it? Overclick wrote: I have such, and my .namespace is different from fasmg but lets me to past it without any worry of name mixing. |
|||
24 Apr 2022, 01:00 |
|
Overclick 24 Apr 2022, 01:42
Quote:
For those who need it. Quote:
LOLWHAT? Just tested, all output exactly the same. Or what kind of text do you mean? |
|||
24 Apr 2022, 01:42 |
|
macomics 24 Apr 2022, 02:31
x1
code wrote:
code wrote:
code wrote:
However, you did not hear me again. If you want to add something, just add it. But leave the lite version in its current form. |
|||
24 Apr 2022, 02:31 |
|
Overclick 24 Apr 2022, 08:52
Quote:
Oh, my mistake, I thought you were more qualified. It's not x3 or something, believe me. |
|||
24 Apr 2022, 08:52 |
|
Overclick 24 Apr 2022, 11:23
That is example for .stream .frame directives
Single macro prepares strings for two different structures and do some code in place where declared. Code: .data struc MYD2D1LAYERS { .GuiGeneral MYLAYERSPROPS 1,1,1,1,\ 100,100,150,150 } pGuiLayer MYD2D1LAYERS .stream forLayer pGuiLayerEndStruct = $ ... .code ... Render: rend textureone,0,0,50,50 rend texturetwo,50,50,100,100 rend... ...
Last edited by Overclick on 24 Apr 2022, 11:27; edited 1 time in total |
||||||||||
24 Apr 2022, 11:23 |
|
macomics 24 Apr 2022, 11:23
Overclick wrote: It's not x3 or something, believe me. |
|||
24 Apr 2022, 11:23 |
|
Overclick 24 Apr 2022, 11:33
Quote:
Yes, I'm stupid, I don't understand how conditional operators works [facepalm]. As I said all tested, output exactly the same, but you still arguing with me. |
|||
24 Apr 2022, 11:33 |
|
macomics 24 Apr 2022, 11:39
Before it comes to conditional statements, the sources must be loaded. The preprocessor does not process conditional statements. Thus, the text is processed in full after the preprocessor without exclusions.
|
|||
24 Apr 2022, 11:39 |
|
Overclick 24 Apr 2022, 11:53
Quote:
That loads compilation only, who cares?
|
||||||||||||||||||||||||||||
24 Apr 2022, 11:53 |
|
macomics 24 Apr 2022, 12:13
macomics wrote:
You were caught by the tongue. Don't try to get out of it. |
|||
24 Apr 2022, 12:13 |
|
Overclick 24 Apr 2022, 12:47
Quote:
Are you drunk? Did you see my screenshots? Пасху гуляешь? |
|||
24 Apr 2022, 12:47 |
|
macomics 24 Apr 2022, 12:54
Overclick wrote:
|
|||
24 Apr 2022, 12:54 |
|
Overclick 24 Apr 2022, 13:05
Quote:
Isn't it enough for single file output? Extend limits then.
|
||||||||||
24 Apr 2022, 13:05 |
|
macomics 24 Apr 2022, 13:21
Good luck. fasm1 is a 32-bit application on its own. How much more can you add? 2097152?
ADD: Judging by what you gave out. The total length of the source text you have is about 10 kb. It doesn't look like a big project. |
|||
24 Apr 2022, 13:21 |
|
Overclick 24 Apr 2022, 13:47
Quote:
It is not. It's just a testing area, multiplied 100000 times to show your mistake but still small for SINGLE FILE. Ok |
|||
24 Apr 2022, 13:47 |
|
Goto page Previous 1, 2, 3, 4 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.