Chapter 6: Instructions 103
Example
Program Expression Operation Results
Initial conditions: W0 = $0070 (hex)
W1 = $1235 (hex)
W2 = $5678 (hex)
W3 = $9ABC (hex)
Operation results: W0 = $0070 (hex)
W1 = $1235 (hex)
W2 = $5607 (hex)
W3 = $0020 (hex)
The high-order 8 bits of W2 do not change.
ENCO
D = W2
S = W0
DECO
D = W3
S = W1
R0.0
R
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com