13,044,705 members (44,455 online)
Rate this:
See more:
Hello Friends,
This is a quick question.
I want to know that where will be the result of the operation
`ADD BX, AX`

Stores in?
Is it AX or BX?
This confusion arises since we have instruction
`ADD AX, BX`
which stores the result in AX. I thought, where will be the result store when we interchange the two operands AX and BX?

Thank you.

Regards
Tushar Srivastava
Posted 15-Sep-12 4:14am
Tushar Sriv 15-Sep-12 10:40am

Thank you both :-)

Rate this:

## Solution 1

BX

The destination is always on the left.

```add <destreg>,<reg>
And the destination always comes first.
Mehdi Gholam 15-Sep-12 10:36am

5'ed, just posted the same.
OriginalGriff 15-Sep-12 10:55am

Great minds and all that!
Rate this:

Rate this:

## Solution 3

`ADD AX,BX`
add value in bx to value in ax (result in ax)
v2

Top Experts
Last 24hrsThis month
 OriginalGriff 258 ppolymorphe 155 Afzaal Ahmad Zeeshan 70 F-ES Sitecore 70 Pat O'Brien 50
 OriginalGriff 4,485 RickZeeland 1,844 ppolymorphe 1,604 F-ES Sitecore 1,553 Dave Kreskowiak 1,349