Renesas M32R-FPU User Manual

Page of 192
3
3-28
M32R-FPU Software Manual (Rev.1.01)
BTST
BTST
INSTRUCTIONS
3.2 Instruction description
bit operation Instructions
Bit test
[M32R-FPU Extended Instruction]
[Mnemonic]
BTST  #bitpos,Rsrc
[Function]
Remove the bit specified by the register.
C = Rsrc >> ( 7-bitpos ) ) &1;
[Description]
Take out the bit specified as bitpos within the Rsrc lower eight bits and sets it in the condition
bit (C). bitpos becomes 0 to 7, MSB becomes 0 and LSB becomes 7.
[EIT occurrence]
None
[Encoding]
bitpos
0000
BTST  #bitpos,Rsrc
src
1111
0