Skip to contentSkip to conversation

working with mmx

DISCUSSION Ankit Jain 2 participants 2 messages Jul 23, 2004

lore
Share & tools
lore

Ankit Jain

author
#0 lore raw

actually the problem is i am not able to understand why this is not functiuoning

asm("mov %2,%0"

    "mov %3,%1"
    :"=r"(x),"=r"(y)
    :"r"(a),"r"(b))

it gives assembler error

ankit

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html

#1 lore raw
Quoted 9 lines · Ankit Jain

actually the problem is i am not able to understand why this is not functiuoning

asm("mov %2,%0"

    "mov %3,%1"
    :"=r"(x),"=r"(y)
    :"r"(a),"r"(b))

it gives assembler error

The two strings

	"mov %2,%0"
	"mov %3,%1"
get concatenated, try to separate them, e.g.
	"mov %2,%0\n"
	"mov %3,%1"
Signature · 1 line
Eyal Lebedinsky	 ([email protected]) <http://samba.org/eyal/>