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: 20632
Location: In your JS exploiting you and your system
revolution 02 Apr 2009, 03:56
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: 1159
Azu 02 Apr 2009, 04:02
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: 4624
Location: Argentina
LocoDelAssembly 02 Apr 2009, 04:11
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.