Re: when to use proc

From: Betov (betov_at_free.fr)
Date: 11/04/03


Date: 04 Nov 2003 20:28:29 GMT

Ed Beroset <beroset@mindspring.com> wrote in
news:3oMpb.7345$Oo4.5800@newsread1.news.atl.earthlink.net:

> [...]
> Here's what I understand about your macros. They do not:
> 1. make any symbol table differentiation between a label and a proc
> 2. handle 16-bit code
> 3. handle 16-bit args
> 4. interface with languages other than C
> 5. allow for the omission of a stack frame when no args are passed

I suspect more and more that you are better unhonest than stupid,
but, just in case you would really not know,

* RosAsm is a PE Assembler and PEs are 32 Bits.

* In 32 Bits Mode, the Stack must remain 4 Bytes aligned.

* I don't work to serve the soupe for C, or anything else, and
the only purpose of RosAsm is to output Applications.

* Asm Programmers are supposed to know, or to learn, when
to make use of such Macros and when to make use of a regular
Labelled Routine.

> Also, it appears that with a hardcoded label P9: in the EndP macro,
> you'd either have to contend with duplicate labels somehow or to use a
> different macro for each procedure. Neither makes any technical sense,
> however, so perhaps you've got some kind of auto-incrementer for that
> label that is not shown [...]

Simply A86-like Local Labels. If this does not "make any technical
sense" for you, and if you realy don't understand, you just have to
count how many 'EndP's in RosAsm Source... and yes, "P9:" is "P9:".

>> In fact, i have nothing really against Compilers and against HLL.
>> Just, in Assembly, this kind of HLL-Like implementations _must_
>> be under the programmer control.
>
> When I use an assembler, I have complete control because I understand
> how it works. I *know* what code is generated when I invoke one of my
> macros or use the PROC keyword, just as you *know* that your EndP macro
> always inserts a mov esp ebp, pop ebp, ret xx.

_You_... Maybe. Though, if i remember, this was you, one day i
wrote that MASM does not output what you write... who asked me
for an example... (at the same time, when i wrote that MASM was,
at least, 20 times slower than the actual Assemblers, you asked
me to prove it...).

>> Considering beginners, also, having this definition point
>> declared in full words is very important. Once you know that
>> MASM users may as well write Asm for one year without making
>> up their mind that "Invoke" is not a Mnemonic (example known),
>
> If that's the case, they certainly can't have read the documentation
> that comes with the assembler, and so it's not particularly surprising
> that there would be some areas they'd not know. What is more
> interesting to me, in this instance, is that such a beginner could
> apparently sucessfully write assembly code for a year without having
> read any of the documentation! It's an amazing success.

Absurde logic. Not even funny.

>> how do you think, for example, that the HLA users will ever
>> know what a Mnemonic is?... Reading AoA32 blabla for a couple
>> of years?...
>
> I think that instead of worrying over what HLA users will and will not
> learn, you might better concentrate on what you learn and what you can
> teach others. Posting code as illustration and making technical
> comments on other people's posted code would be a better way to do that
> than to perpetually whine about other people's work. But that's just
> my opinion.

I have posted 2 Megas of not so badly working Source Code (RosAsm):

< http://betov.free.fr/RosAsm.html >

... where anyone can also download a 3 megas help file (B_U_Asm.zip)
including an Asm32 Tutorial.

Doing what you suggest would be completely stupid, and surely,
a ridicoulous waste of time. There is no thechnical discussion
possible with unhonest persons.

Betov.



Relevant Pages

  • Do People Really Learn Assembly with HLA?
    ... > crowd who thinks that macros are Assemblys' high level constructs. ... than MASM, for example). ... of any assembler available for the x86 back then (and today, ... only to HLA). ...
    (alt.lang.asm)
  • Re: Local Symbols in Macros (#2)
    ... >> Wow, pages and pages of code to do what's already built in to MASM, ... > if RosAsm needs to have a very powerful Macros System, ... > this is exactly because, in a True Assembler, these ...
    (alt.lang.asm)
  • Re: Definitions - What are yours?
    ... I challenge you, about Macros, to output a Bitmap created ... by MASM Macros (Yes, clown, FASM *CAN* do that). ... I never claimed that MASM has a complete superset of FASM's ... The reason why it is not Assembler. ...
    (alt.lang.asm)
  • Re: Local Symbols in Macros (#2)
    ... >> this is exactly because, in a True Assembler, these ... and that if MASM includes this stuff ... >> under the form of internaly nested hidden macros, ... i call the "Easy Lazy Way", ...
    (alt.lang.asm)
  • Re: Rid of Multi-Pass
    ... in normal assembly code without any macros. ... not use these "true local labels" in normal code. ... Assembler with which the users effectively develop their ...
    (alt.lang.asm)

Loading