Xchn, Xch -37, Xchn -37 – Maxim Integrated MAXQ Family User Manual
Page 214: Maxq family user’s guide
Advertising

18-37
MAXQ Family User’s Guide
(MAXQ20 Only)
Exchange Accumulator Bytes
XCH
Description:
Exchanges the upper and lower bytes of the active accumulator.
Status Flags:
S
Operation:
Acc.[15:8]
← Acc.[7:0]
Acc.[7:0]
← Acc.[15:8]
Encoding:
15
0
Example(s):
; Acc = 2345h
XCHN
; Acc = 4523h
XCHN
Exchange Accumulator Nibbles
Description:
Exchanges the upper and lower nibbles in the active accumulator byte(s).
Status Flags:
S
Operation:
Acc.[7:4]
← Acc.[3:0]
Acc.[3:0]
← Acc.[7:4]
Acc.[15:12]
← Acc.[11:8]
Acc.[11:8]
← Acc.[15:12]
Encoding:
15
0
MAXQ10
Example(s):
; Acc = 23h
XCHN
; Acc = 32h
MAXQ20
Example(s):
; Acc = 2345h
XCHN
; Acc = 3254h
1000
1010
1000
1010
1000
1010
0111
1010
Maxim Integrated
Advertising