Re: RosAsm injects extra bytes into your data



\o//annabee wrote:
> På 28 Apr 2005 15:18:11 -0700, skrev Alex McDonald
> <alex_mcd@xxxxxxxxxxxxxxx>:

>
> We know you have no clue about assmebly,

Really? And you are...?

> and therefore its really strange
> to see
> you post anything in asm ng, but that you cant even understand what a

> label is ????
>
> A label is a symbolic representation of a ADDRESS. A memory adress.
> Not anything else.

Aha; a label in RosAsm is typeless, and isn't attached to the object
that follows... I see. Hence all the B$s W$s and D$s peppered all over
the code. So this;

[ByteData: B§ ? ? ? MyLastData: ? ? ? ? ]

is legal syntax? What byte offset from ByteData does it have? 3? How
long is this uninitialised "data"? 7 bytes?

How do you construct something like this in RosAsm? (pseudo-asm);

string dw end-start
start db "A string of some length"
end equ *

Is this the equivalent?

[string: w$ (end-start) start: "A string of some length" end: ]

Can I calculate on labels in different sections?

[ datalabel: ... ]
codelabel: mov eax, codelabel-datalabel

>
> >> This is why there is a dummy Data, in the example.
> >
> > Come on, get with the plan, Betov. Dummy data? Since when did an
> > assembler that can control every bit and byte in the PE need dummy
> > data? How is this enlightening for the novice? It's bad code,
period.
>
> Its redundant code. The memory is allready cleared.

Now it's suddenly redundant. Ah well. So when does this

[ByteData: B§ ? ? ? ? ? ? ? MyLastData: D§ ?]

get cleared?

>
> >> There is no Structure.
>
> > Eh? Then what are these 11 bytes? A random placement of data? Are
you
> > suggesting that MyLastData isn't 7 bytes beyond ByteData? Just in
case
> > you forgot what you wrote;
> >
> > [ByteData: B§ ? ? ? ? ? ? ? MyLastData: D§ ?]
>
> Its several reservation of bytes in the dynamic datasegment,
> initalized at runtime. The lables can be placed anywhere, and will
then be
> used
> by the code to access the data at diffrent addresses.

What's a dynamic datasegment? What's initalises it at runtime, as
you've just said it's redundant to clear it at run time?

> >
> > RosAsm is a mighty strange assembler if that isn't a structure.
>
> :))))) oh lolly...it never ends.

What specifically?

>
> >> There is no Structure.
>
> > That's what the entire discussion in this thread has been about.
>
> Nope. Its a thread about data.

Nonsense. It's a thread about optimally aligning structures; it's
nothing to do with data at all. Betov's examples given for RosAsm don't
contain any data, just uninitialised words and bytes.

--
Regards
Alex McDonald

.



Relevant Pages

  • Re: This Crashes RosAsm
    ... > Whether it is Randy Hyde who found the problem or otherwise, ... Back when I was getting duplicate label symbols, ... endear a fair amount of confidence in the RosAsm product. ... aren't really bugs at all and tells people that their presence ...
    (alt.lang.asm)
  • Re: Structures in Assembly Language
    ... Oh...okey then I am strange then. ... > I'm in a text editor, not in RosASM:) ... If you need larger structs they will allways be large. ... We cannot compare C and asm, ...
    (alt.lang.asm)
  • Re: Optimization
    ... (based on their frequency of appearance in various apps I've looked ... with an average of about one label every ten lines of code and one ... label reference every three lines of code, ... RosAsm doesn't do a good job of this), with no comments, no include ...
    (alt.lang.asm)
  • Re: XP says "Kayes Documents" but Win98 says "My Documents"
    ... Sharon F wrote: ... >> in a folder name? ... I mean it's strange that such is the case in this ... Volume in drive C has no label. ...
    (microsoft.public.windowsxp.general)
  • Re: Complete Symphonies of Sibelius/Blomstedt SFSO
    ... with England later, maybe in July. ... It is strange that ... if this is a European release that it still hasn't shown up on any ... Perhaps the people at the label don't have the slightest idea of what ...
    (rec.music.classical.recordings)