Re: NASM-options?
- From: "Benjamin David Lunt" <zfysz@xxxxxxxxxxxxxxx>
- Date: Mon, 23 Jun 2008 16:28:45 -0700
"Frank Kotler" <fbkotler@xxxxxxxxxxx> wrote in message
news:JwV7k.3999$P%.3900@xxxxxxxxxxx
Benjamin David Lunt wrote:
Hi Frank, Hi hpa,
To take it one step further...
mov eax, 'SLOT'
mov [buf], eax
What do you expect to see in "buf"?
; in NBASM syntax, I expect
mov eax, 'SLOT' ; eax = 'T' 'O' 'L' 'S'
mov [buf], eax ;
mov eax,[buf] ; eax = 'T' 'O' 'L' 'S'
The form I've actually used, "cmp dword [esi], 'HOME'" is easier to write,
the way Nasm does it. Dunno if that trumps "logic" or not. :)
I guess it all comes down to preference. In my opinion, there
isn't a right way or a wrong way. One assembler doesn't do
it right while the other doesn't do it wrong. It is all preference.
Since I know the author of NBASM pretty well, I think he did it
that way, because it was his preference. Nothing more.
So that this doesn't turn into something more than it is, I am going
to stop here. Thanks everyone for your comments.
Enjoy your week,
Ben
.
- References:
- NASM-options?
- From: Wolfgang Kern
- Re: NASM-options?
- From: H. Peter Anvin
- Re: NASM-options?
- From: Benjamin David Lunt
- Re: NASM-options?
- From: H. Peter Anvin
- Re: NASM-options?
- From: Benjamin David Lunt
- Re: NASM-options?
- From: Frank Kotler
- NASM-options?
- Prev by Date: Re: NASM-options?
- Next by Date: Re: NASM-options?
- Previous by thread: Re: NASM-options?
- Next by thread: Re: NASM-options?
- Index(es):
Relevant Pages
|
|