Is this valid?
mov byte [ebx], di
It assembles just fine with NASM. I want to move the lowest byte of
EDI
to the byte at [ebx].
If it's not valid, I guess I can do this:
mov ax, di
mov byte [ebx], al
... but that would take longer etc.
Thanks.
No.
> It assembles just fine with NASM.
Get a version of Nasm that's not broken at:
...latest snapshot seems okay...
> I want to move the lowest byte of
> EDI
> to the byte at [ebx].
>
> If it's not valid, I guess I can do this:
>
> mov ax, di
> mov byte [ebx], al
>
> ... but that would take longer etc.
Yeah. Can you use some register that has an 8-bit part instead of edi?
Swap edi and ebx, perhaps? "mov [edi], bl" would be fine - wouldn't even
have to tell Nasm, "byte"! :)
Best,
Frank
> Is this valid?
> mov byte [ebx], di
The right syntax is
mov [ebx], dil
although it's unusual to address with ebx. More typical would be
mov [rbx], dil
--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end
Are you sure about that? If so, what version? What BITS size?
I've got a few versions here. For all BITS sizes (16, 32, and 64 where
applicable), they all report:
file.asm:3: error: mismatch in operand sizes
Rod Pemberton