flat assembler
Message board for the users of flat assembler.

Index > Heap > Niels show #2

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
These posts were splitted from fasm why no update? thread.

For ASM, we can split it in 2:
- Preprocessor conditional assembly
- Processor conditional assembly

For C that would be:
- Pre-C-generator conditional c-flat-source
- C-Generator conditional (method-)assembly

I agree with Tomasz's "one source one output" for ASM, eventhough for debug it would come in handy if you have only 1 debug-level, but a mature-program has alot more than one, typing those at the commandline will request for a textfile->copy->paste-method, the point where one returns and see's an include 'VAR_debug.asm' will do the job...

Just my two dollar Smile

Niels
Post 01 Aug 2007, 14:31
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
sorry niels, but can you explain your two dollars more? Can you give me example of what you call "preprocessor conditional assembly", "processor conditional assembly", "Pre-C-generator conditional c-flat-source" and "C-Generator conditional (method-)assembly" ? Because it sounds like nonsense to me
Post 01 Aug 2007, 14:35
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
Sorry vid, no threads from you... Wink


Niels

ps.
For the record, it's no nonsense...
Post 01 Aug 2007, 15:20
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
Niels wrote:
For ASM, we can split it in 2:
- Preprocessor conditional assembly


if(debug_level0==ON)
mov al,10
else mov al,20

OR

if(debug_level2==ON)
{
include '../VARdebug_level2.asm'
} else { include '../VARdebug_level0.asm' }

Niels wrote:

- Processor conditional assembly


cmp al,10
jz overthere
stayhere:

Niels wrote:
For C that would be:
- Pre-C-generator conditional c-flat-source


#DEFINE DEBUG=1;

if(DEBUG){
printf("morning");
}
elif(DEBUG==2) printf("afternoon");
else printf("evening");

Niels wrote:
- C-Generator conditional (method-)assembly


C-generators solve C-source-questions to assembly in compiler used methods to do so; You could say 'predefined (glue/break-)solutions'.

Niels
Post 01 Aug 2007, 15:46
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Only has sense this
Quote:
if(debug_level0==ON)
mov al,10
else mov al,20

OR

if(debug_level2==ON)
{
include '../VARdebug_level2.asm'
} else { include '../VARdebug_level0.asm' }


The first part can be done with conditional assembly
Code:
if defined debug
  mov al,10 
else 
  mov al,20   
end if    

The second part doesn't work with conditional assembly so we need conditional preprocessing
Code:
else equ
match =ON, debug_level2{
include '../VARdebug_level2.asm'
else equ 0}

match ,else { include '../VARdebug_level0.asm' }    


But as you can see there are not control structures at preprocessing level, this match allows you to conditional preprocess something and is somewhat similar to the #IF, but if you need #ELSEIF or #ELSE you have to do it by your own as in the example above.

[edit]Well, REPT is a control structure Razz. But I mean conditional control structures[/edit]
Post 01 Aug 2007, 15:59
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
LocoDelAssembly,

I hope the serious people do understand...

Niels

ps.
It's kind of obvious giving an example of a one liner option or build-blocks...

ps2.
The one liner-type could also been the " include 'abc.asm' ", if you had the sense in you... Wink

ps3.
I gave easy examples, easy to understand...

ps4.
Loco, do your 'corrections' work with e.g. NASM?

ps5.
LocoDelAssembly wrote:
The first part can be done with conditional assembly

It is already...(You do refer to preprocessor conditional assembly, do you?)
Post 01 Aug 2007, 16:33
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Quote:

LocoDelAssembly,

I hope the serious people do understand...

Don't worry, they do but unfortunately it is actually worst for you.

PS: If I not reply your next post is very likely because it is not worth of it.
Post 01 Aug 2007, 16:54
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
LocoDelAssembly wrote:

Don't worry, they do


How could you tell?

LocoDelAssembly wrote:
unfortunately it is actually worst for you.


Can't wait how you explain/back-up that weird perspective-expression...

LocoDelAssembly wrote:
PS: If I not reply your next post is very likely because it is not worth of it.


It's not me you are judging..., I responded for your sake, thank GOD for it, not me...

Niels

LocoDelAssembly wrote:
But as you can see


You showing me? Smile Smile Smile
Post 01 Aug 2007, 17:06
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
LocoDelAssembly wrote:

The first part can be done with preprocessor conditional assembly
The second part doesn't work with preprocessor conditional assembly so we need preprocessor conditional assembly


Review your Logic Wink

Niels
Post 01 Aug 2007, 17:13
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Niels wrote:
LocoDelAssembly wrote:

The first part can be done with preprocessor conditional assembly
The second part doesn't work with preprocessor conditional assembly so we need preprocessor conditional assembly


Review your Logic Wink

Niels


mmmhh, good trolling technique. First post a few times to hide from the screen the post of the author to attack, second quote something ALMOST exact to the original post, later talk about logic problems.

The real quote is
Quote:
The first part can be done with conditional assembly
Code:

if defined debug
mov al,10
else
mov al,20
end if




The second part doesn't work with conditional assembly so we need conditional preprocessing


Also I couldn't edited my post to hide the error because the forum software puts a warning to any edit done after a post appear below it.
Post 01 Aug 2007, 17:44
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
LocoDelAssembly wrote:
mmmhh, good trolling technique.


Accusation 1.

LocoDelAssembly wrote:
First post a few times to hide from the screen the post of the author to attack


Accusation 2.

LocoDelAssembly wrote:
second quote something ALMOST exact to the original post, later talk about logic problems.


Accusation 3.

LocoDelAssembly wrote:
Also I couldn't edited my post to hide the error because the forum software puts a warning to any edit done after a post appear below it.


And only one 'excuse'?


Niels

ps.
Loco do study the replies, besides mine, especially yours... Wink
Post 01 Aug 2007, 17:50
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
LocoDelAssembly,

I consider you underage, so we leave it at this... OK. Wink

Niels
Post 01 Aug 2007, 17:56
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Niels: enough's enough. first you talk complete nonsense, which demonstrates you know very little of topic, and then you start attacking others with false accusations.

Go play elsewhere...
Post 01 Aug 2007, 18:22
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
vid,

You are still being foolish...

Niels

ps.
If Tomasz agrees in this, I will leave immALOT.
Post 01 Aug 2007, 18:42
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
vid,

If you ever come to any sense...

You(vid) protect the wrong from what is right and I help the wrong to be right.

Niels
Post 01 Aug 2007, 18:44
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
vid,

I hope GOD has more patience for you than me.
To me you were already 'a done deal'.

Niels

ps.
I do forgive, but only those that are not against GOD and can forgive themselves; Only light takes away darkness.
Post 01 Aug 2007, 18:49
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
Tomasz,

Please speak up and get rid of vid or loose me.

Niels


ps.
I can't stand unlogic people in a logic environment.
Post 01 Aug 2007, 18:51
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Good one, boost it up by bringing favourite topic of god into this...

Sorry, you are simply provoking, and your posts have absolutely no informative value to anyone (only desinformative sometimes). My "job" on this board is to keep it clean, on-topic, and also to try to keep it at some level of professionalism. You satisfied neither of this, and so your posts and following discussion was moved.

About tomasz opinion, i am pretty sure that if he would reread what happened, he would agree. Go on, write him a PM, and ask him to read original topic and this splitted part, to see how you was presenting your nonsense as if you knew what you are talking about, and how you lamely attacked LocoDelAssembly.
Post 01 Aug 2007, 18:55
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
vid,

You're blind 'vid' and you won't let me help you, sorry. Smile

Niels
Post 01 Aug 2007, 19:20
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
vid,

Maybe "show #2" will help you...

Niels
Post 01 Aug 2007, 19:21
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< 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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.