assembly_membly 0 Newbie Poster

Hi,

I need to confirm somthing.

Let say this is my program:

STR1 DB 'we are learned assembler'
STR2 DB 0,1,0,0,0,0,1,0,1,0,1,0

mov DI,offset STR1
mov SI,offset STR2

XCHG DI,SI

What is SI now?
Is it? 'we are learned assembler'
Or just the char 'w'??

Does it swap only the values??? Or does it also swap the pointers

thanks & regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.