small bug

Peter Johnson peter at tortall.net
Wed Feb 28 09:36:31 PST 2007


On Wed, 28 Feb 2007, pingved at gmail.com wrote:
> 1. (d)word duplicate, no errors:
> test word word [_Mask],MASK

Is there a problem in accepting it?  There's nothing ambigious about this.

> 2. no messages at file in windows:
> @%ASM% -a x86 -f win32 -I..\INCLUDE test.asm -o test.obj > msg

I'm a little confused by what you're asking.  Are you expecting to see 
something in msg?

> 3. More simple code (released in fasm):
> push eax bx cx
> pop eax bx cx

This is not NASM syntax.  If you want this capability it's easy enough to 
write a NASM macro that does it.

> 4. Is
> mov word [gs:(edx + 2)],ax (yasm)
> equal
> mov word ptr gs:[edx + 2],ax (tasm)?

Yes.  The parentheses are not required, and since Yasm knows ax is a 
word-sized register, the "word" is not required either, so:
    mov [gs:edx+2], ax
is also acceptable.

Peter


More information about the yasm-devel mailing list