Re: NASM-options?




"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


.



Relevant Pages