Author Topic: xchg  (Read 3817 times)

imadhx30

  • Regular Member
  • *
  • Posts: 35
xchg
« on: December 26, 2013, 07:09:31 AM »
can use xchg instruction masm32
if so what used include?

jj2007

  • Member
  • *****
  • Posts: 10899
  • Assembler is fun ;-)
    • MasmBasic
Re: xchg
« Reply #1 on: December 26, 2013, 07:14:14 AM »
Why don't you just try xchg eax, edx?

imadhx30

  • Regular Member
  • *
  • Posts: 35
Re: xchg
« Reply #2 on: December 26, 2013, 07:32:18 AM »
I used xchg eax, ebx it may not work!!

jj2007

  • Member
  • *****
  • Posts: 10899
  • Assembler is fun ;-)
    • MasmBasic
Re: xchg
« Reply #3 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??

Gunther

  • Member
  • *****
  • Posts: 3585
  • Forgive your enemies, but never forget their names
Re: xchg
« Reply #4 on: December 27, 2013, 07:52:47 AM »
Hi imadhx30,

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

Gunther
Get your facts first, and then you can distort them.