Renesas H8S/2138 Series Manual Pagina 26

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 148
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 25
Microcomputer Technical Q&A
18
Q&A No.: QAH8S-017
Category: Instruction
Subject: BLD and BIST Instructions
Question
How are bit-manipulation instructions such as BLD and BIST used?
Answer
These instructions can be used to invert any bit data in memory, and store the value in a bit of
another memory address, as shown in the flowchart below.
START
END
Bit n of IN = 0?
Bit n of OUT 1
Bit n of OUT 0
No
Yes
Using BLD and BIST Not Using BLD and BIST
BLD #n,@IN
BIST #m,@OUT
BTST #n,@IN
BNE L1
BSET #n,@OUT
BRA L2
L1: BCLR #n,@OUT
L2:
8 bytes/7 states 16 bytes/11 states
Vista de pagina 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 147 148

Comentarios a estos manuales

Sin comentarios