Re: Structures in Assembly Language

From: Percival (dragontamer5788_at_yahoo.com)
Date: 08/19/04


Date: 19 Aug 2004 14:56:42 GMT

The Wannabee wrote:
> På 18 Aug 2004 18:07:58 -0700, skrev hutch-- <hutch@movsd.com>:
>
>>> To beginners:
>>
>>
>> This is claptrap, assemblers have had the capacity to write and
>> manipulate structures since before 1990 and structures (C), UDTs
>> (basic), records (pascal) are a normal part of programming. The
>> difference is some assembler CAN handle structures and some CANNOT.
>
>
> Completly wrong. All assembler can handle structures. You confuse what
> structures are.

You are confusing structures vs records i think. Thats how i see it.
Records are basically defines, structures actually support a full
structure, abstracting away from defines. Weather or not its a good
thing, thats sorta the point, to abstract away from seeing ebx+2 and
instead see something like mystruct.x

>> When you have to write code for an operating system that commonly uses
>> structures, you either use an assembler powerful enough to do it
>> easily or get stuck with some dirty fudge to try and emulate something
>> that is very simple.
>
>
> RosAsm is times more powerful than you will ever understand then.

Well, decimal points are "times" :)
J/k. Anyway, true structures with dot notation is something i personally
like. Id have to say RosAsm is different, but that doesn't necessarily
mean its more powerful.

>> The great advantage of using
>> structures is that you can address each member by name and you ALWAYS
>> get the correct address by doing so.
>
>
> LOL . Theres no advantage of using structures. ALL programm must use
> stuctures. Its unavoidable. But you and Randy doesnt understand the
> nature of structure, so you mis out on what they really are. They are
> nothing but writing conventions, rules of how to interpret (FORMAT) a
> chunck of data.

Please, where did they post something wrong in their post? It doesn't
seem to be wrong. And i think your statements are like a contradiction.
No advantage of using structures, all programs must use them?

>> There is nothing clever about
>> manually coding array offsets through multiple levels of indirection,
>> just highly unreliable code that is nearly impossible to debug and
>> fix.
>
>
> Wrong. There are nothing clever about it thats true, but that they lead
> to unreliable code, is untrue. Only writing unreliable leads to that.

Preventing someone from writting unreliably helps a bit too.

>> Its one of th worst kept secrets that Microsoft had technical problems
>> with the design of early 32 bit Windows so they hired a pile of VAX
>> mainframe programmers to design the PE file format used in 32 bit
>> Windows. This is where the nested structures came from and without
>> that capacity, coding Windows assembler is an unreliable unfixable pig
>> that does not work properly.
>
>
> Utterly wrong. Windows expects data, give it the correct data, using any
> method of structure, and it will be fully possible to use it. And WAY
> easier without the silly Record keyword that randy uses. And also using
> RosAsm methods, much easier to learn.

I am utterly confused of what this has anything to do with the subject.

>> This much I will say to programmers who are learning both Windows and
>> assembler coding, don't be mislead by bullsh*t coming out of Betov
>> when he does not have the experience coding Windows software.
>
>
> This is so funny. Betov understand way more then you do. When it comes
> to the nature of stuctures, even _I_ understand more than you do.

Can't argue here. I don't know how much you know, or how much hutch
knows. But it seems as if you both believe that you all have a good
understanding of it.

Percival



Relevant Pages

  • Re: Structures in Assembly Language
    ... difference is some assembler CAN handle structures and some CANNOT. ... Windows code properly to boast of what their toys cannot do but if you ... that capacity, coding Windows assembler is an unreliable unfixable pig ... when he does not have the experience coding Windows software. ...
    (alt.lang.asm)
  • Re: Video Mode 13h in windows XP ... impossible?
    ... there is NO problem using mode 13h under XP...if you write a DOS ... terminates so does the "DOS box" and you return to the Windows desktop ... A dedicated assembler (most of which are completely free and available ... NASM, this is _certainty_ that it's okay for you to do so...the people ...
    (alt.lang.asm)
  • Re: Segmentation in real mode
    ... Except that Windows does have its "prohibition" on "direct hardware ... what you're saying about 32-bit programming is still ... Linux is often ignored in this context but it's actually arguably the best ... a "portable assembler", so, you know, it's not really got anything ...
    (alt.lang.asm)
  • Re: ASM noob - couple of questions
    ... comes to Windows programming. ... When you talk of "tutorials for beginners", ... The Visual Tuts? ... learn and unlearn later when using another assembler. ...
    (alt.lang.asm)
  • Re: Beginner Learning Assembler
    ... Linux is free and thus gets spread to more machines than Windows -- so ... language is still the C language no matter what compiler you use. ... the Windows API is still the same Windows ... API no matter what assembler you use. ...
    (alt.lang.asm)