Re: RosAsm injects extra bytes into your data
- From: "Alex McDonald" <alex_mcd@xxxxxxxxxxxxxxx>
- Date: 28 Apr 2005 16:58:42 -0700
\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
.
- Follow-Ups:
- Re: RosAsm injects extra bytes into your data
- From: \\\\o//annabee
- Re: RosAsm injects extra bytes into your data
- References:
- HLA v1.76 is now available
- From: randyhyde
- Re: HLA v1.76 is now available
- From: Betov
- Re: HLA v1.76 is now available
- From: randyhyde
- Re: HLA v1.76 is now available
- From: Betov
- RosAsm injects extra bytes into your data
- From: randyhyde
- Re: RosAsm injects extra bytes into your data
- From: Betov
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- Re: RosAsm injects extra bytes into your data
- From: Betov
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- Re: RosAsm injects extra bytes into your data
- From: Betov
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- Re: RosAsm injects extra bytes into your data
- From: Betov
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- Re: RosAsm injects extra bytes into your data
- From: Betov
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- Re: RosAsm injects extra bytes into your data
- From: \\\\o//annabee
- HLA v1.76 is now available
- Prev by Date: Re: RosAsm injects extra bytes into your data
- Next by Date: Re: Gratitude in order !
- Previous by thread: Re: RosAsm injects extra bytes into your data
- Next by thread: Re: RosAsm injects extra bytes into your data
- Index(es):
Relevant Pages
|