flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Reverse equ?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17247
Location: In your JS exploiting you and your system
revolution
Azu wrote:
All the examples I posted fail to compile, or crash on startup due to putting in the wrong length E.G. 0 Sad


Your example won't compile because you deleted the .len definition.. so there are "undefined symbol X.len" errors.. and it would crash anyways, since you also took the part that embeds the length.. basically you removed everything except the db..
Azu, in future to make it easier for people to help you could you please say things like "I am trying add a .len element but it fails, see code" etc. This makes it so much faster for us to know what it is that you are trying to achieve. Remember that we don't know your internal thoughts and helping us to help you would speed your development time and lessen our wasted messages that are posting at crossed purposes. I hope you understand that some of us (like me) are not as smart as you, LocoDelAssembly or Tomasz, and have trouble trying to interpret what is being asked from some broken code posted with no explanation. Even one simple explanitory sentence is very useful and can make a lot of difference. I hope you can understand what I am asking.
Post 02 Apr 2009, 03:56
View user's profile Send private message Visit poster's website Reply with quote
Azu



Joined: 16 Dec 2008
Posts: 1160
Azu
Azu wrote:
Something like

Code:
Blah        equ 1
moo    equ 'ooooom'

struc edb[data]{     common
      .len dd .lenn
       if reverse
          . reverse db data
   else
                . db data
   endif
       .lenn=$-.

woof   edb Blah,reverse moo,"hello",5    
????


That was the best way I could think of asking, sorry. Sad

I will try to be more clear in the future.. but I'm not sure how.. Confused



I am very grateful for all of your help Very Happy
Post 02 Apr 2009, 04:02
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Ups, I completely overlooked the .len part on that post Embarassed
Post 02 Apr 2009, 04:11
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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.

Powered by rwasa.