Under Tasm, what processor directive and Tasm version is needed to assemble
MMX instructions. Thanks.
Posted on 2003-10-13 21:12:01 by skywalker
Hi Andrew,

I use TASM v5.3 for MMX commands. All MMX commands working. But I think TASM v5.3 not released from Borland. I found tasm v5.3 some links.

Below example code is answer how to use tasm v5.3 with mmx :)

Regards,




.586p
.mmx

.Model Flat ,StdCall
UNICODE=0
include w32.inc

.data
hw dd 0
deger dq 01234567812345678h
deger2 dq 01111111111111111h
sonuc dq 0

.code

main:
call GetModuleHandle
mov [hw],eax

movq mm0,deger
movq mm1,deger2
paddd mm1,mm0
movq [sonuc],mm1

call ExitProcess , 0

end main
Posted on 2003-10-14 17:00:20 by CYDONIA

Hi Andrew,

I use TASM v5.3 for MMX commands. All MMX commands working. But I think TASM v5.3 not released from Borland. I found tasm v5.3 some links.

Below example code is answer how to use tasm v5.3 with mmx :)

Regards,




.586p
.mmx

.Model Flat ,StdCall
UNICODE=0
include w32.inc

.data
hw dd 0
deger dq 01234567812345678h
deger2 dq 01111111111111111h
sonuc dq 0

.code

main:
call GetModuleHandle
mov [hw],eax

movq mm0,deger
movq mm1,deger2
paddd mm1,mm0
movq [sonuc],mm1

call ExitProcess , 0

end main


Thanks for the code. I forgot to say in my original post that I need 16 bit code. The MMX instructions were introduced with the Pentium II, so I should be able to assemble them in 16 bit. Thanks.
Posted on 2003-10-14 17:22:51 by skywalker
MMX its self is 64Bit
Posted on 2003-10-14 18:09:30 by devilsclaw