Re: RosAsm - right click
From: The Wannabee (faq_at_.@.@.@.@.@szmyggenpv.com)
Date: 05/03/04
- Next message: C: "Re: RosAsm - right click"
- Previous message: Frank Kotler: "Re: What exactly is Protected Mode?"
- In reply to: C: "Re: RosAsm - right click"
- Next in thread: Betov: "Re: RosAsm - right click"
- Reply: Betov: "Re: RosAsm - right click"
- Reply: C: "Re: RosAsm - right click"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 03 May 2004 21:56:29 +0200
På 3 May 2004 10:27:38 -0700, skrev C <blackmarlin@asean-mail.com>:
> Betov <betov@free.fr> wrote in message
> news:<XnF94DDD96FB8E2Fbetovfreefr@212.27.42.72>...
>> "Beth" <BethStone21@hotmail.NOSPICEDHAM.com> écrivait news:IWllc.150
>> $XP4.136@newsfe6-win:
> The pipe '|' cannot be used as it is already used as the
> bitwise or operator (as it common with many languages,
> specifically NASM, which Luxasm inherits many features
> from.)
Why does asm need an "or operator" ?
> Luxasm currently uses '\\' (as the '\' glyph is used
> as a line continue, the '\\' sequence seems logical for
> a line reset operator.) While use of this feature is
> discoraged in the general case, for certain specific
> cases it results in cleaner code; commonly the case
> where the code itself is highly repetitive, eg:
>
> cmp al, 1 \\ je fn_1
> cmp al, 2 \\ je fn_2
> cmp al, 3 \\ je fn_3
> cmp al, 4 \\ je fn_4
>
Maybe functional, but it looks like the functionality is not prioritized.
Little confusing to me as
// "is comment out this line" (in delphi)
> -or-
>
> #if ##1 #id ebx \\ mov eax, ebx
> # else#if ##1 #id ecx \\ mov eax, ecx
> # else#if ##1 #id edx \\ mov eax, edx
> # else#if ##1 #id esi \\ mov eax, esi
> # else#if ##1 #id edi \\ mov eax, edi
> #endif
Yes RosAsm uses the same character, but it does not in any way SPRAY half
a page with it. You have 26 of those in there, placed for maximal blurring
effect. I find it very hard to read, and very hard to tell my brain to
force itself to read it. RosAsm macros seems much easier to read.
Allthough they use same char for parameters. What about "`" instead or
some other, less obscuring char ? Whatever. It may only be my eyes....,
just a thought.
`if ``1 `id ebx ~ mov eax, ebx
` else`if ``1 `id ecx ~ mov eax, ecx
` else`if ``1 `id edx ~ mov eax, edx
` else`if ``1 `id esi ~ mov eax, esi
` else`if ``1 `id edi ~ mov eax, edi
`endif
just a sugestion. but now I can more easily see what the macro means. What
is "id", is it like identical?
> C
> 2004-05-03
--
- Next message: C: "Re: RosAsm - right click"
- Previous message: Frank Kotler: "Re: What exactly is Protected Mode?"
- In reply to: C: "Re: RosAsm - right click"
- Next in thread: Betov: "Re: RosAsm - right click"
- Reply: Betov: "Re: RosAsm - right click"
- Reply: C: "Re: RosAsm - right click"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|