The MASM Forum

Projects => MASM32 => Topic started by: imadhx30 on December 26, 2013, 07:09:31 AM

Title: xchg
Post by: imadhx30 on December 26, 2013, 07:09:31 AM
can use xchg instruction masm32
if so what used include?
Title: Re: xchg
Post by: jj2007 on December 26, 2013, 07:14:14 AM
Why don't you just try xchg eax, edx?
Title: Re: xchg
Post by: imadhx30 on December 26, 2013, 07:32:18 AM
I used xchg eax, ebx it may not work!!
Title: Re: xchg
Post by: jj2007 on December 26, 2013, 08:56:26 AM
Mysteries of Masm ::)

What about posting your code? Something simple like
.386
.model flat

.code

start:   
   xchg eax, edx
   ret
end start


What about posting at least the error message you get? Or do you think we have remote control over your computer and can see what you typed??
Title: Re: xchg
Post by: Gunther on December 27, 2013, 07:52:47 AM
Hi imadhx30,

XCHG will work. Please post your code and we'll see.

Gunther