Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
XCHG
◄Summary► ◄Detail► ◄Example► ◄Timings Key► ◄Encodings Key►
──────────────────────────────────────────────────────────────────────────────
1000011w mod,reg,r/m disp (0 or 2)
─────────────────┬─────────────────────────┬────────────────────────────────
XCHG reg,reg │ xchg cx,dx │ 88/86 4
│ xchg l,dh │ 286 3
│ xchg al,ah │ 386 3
─────────────────┼─────────────────────────┼────────────────────────────────
XCHG reg,mem │ xchg [bx],ax │ 88/86 17+EA (W88=25+EA)
XCHG mem,reg │ xchg bx,pointer │ 286 5
│ │ 386 5
─────────────────┴─────────────────────────┴────────────────────────────────
10010 reg
─────────────────────┬──────────────────────┬───────────────────────────────
XCHG accum,reg16 │ xchg ax,cx │ 88/86 3
XCHG reg16,accum │ xchg cx,ax │ 286 3
│ │ 386 3
─────────────────────┴──────────────────────┴───────────────────────────────
-♦-