Re: RosAsm injects extra bytes into your data



"Alex McDonald" <alex_mcd@xxxxxxxxxxxxxxx> écrivait
news:1114628472.109735.162400@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

> Thank you. You wrote;
>
>> > The point of my "idea" is rather than injecting all these padding
> bytes
>> > to align things, why not rearrange all the declarations to
> *minimize*
>> > the wasted space while maintaining the alignment the user requests.
>
>> Because this would be unusable, for the Programmer.
>
>> (The ones who have already written a bit of Assembly
>> will probably understand without explanations... :)
>
> I still don't understand this statement. Can you explain?

As the sense of humour might vary from culture
to culture, and as, maybe, some beginner would
also not understand, here is a trivial example:

[MyFirstData: DwordData: D§ ?]
;...
;...
[WordData: W§ ? ?]
;...
;...
[ByteData: B§ ? ? ? ? ? ? ? MyLastData: D§ ?]
;...
;...

; Clear My Data from 'MyFirstData' to 'MyLastData':

mov eax 0, edi MyFirstData
While edi < MyLastData | stosd | End_While

:)

Betov.

< http://rosasm.org >






.