beautypg.com

Xchn, Xch -31, Xchn -31 – Maxim Integrated MAXQ7667 User Manual

Page 345: Maxq7667 user’s guide

background image

19-31

_________________________________________________________________________________________________________

MAXQ7667 User’s Guide

XCH

Exchange Accumulator Bytes

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

Example(s):

; Acc = 2345h

XCHN

; Acc = 3254h

1000 1010

0111 1010

1000 1010

1000 1010