SX User’s Manual Rev. 3.1 92 © 2000 Scenix Semiconductor, Inc. All rights reserved. www.scenix.com Chapter 3 Instruction Set Example 2: mov M,#$8 ;load MODE register to select CMP_B clr W ;clear W mov !RB,W ;00h into CMP_B and old CMP_B into W
;enables comparator and its output pin
This  example  enables  the  comparator  and  its  output  pin.  The  “mov  !RB,W”
instruction  does  an  exchange  of  data  between  the  CMP_B  register  and  W.  For
access  to the CMP_B  register, the four  upper  bits of the  MODE register are  all
“don’t care” bits, so the “mov M,#lit” instruction (which only affects the four lower
bits of the MODE register) is sufficient to select access to the CMP_B register.