EasyManua.ls Logo

Hitachi H8/500 Series - Bit Manipulations; Bit-Manipulation Instructions

Hitachi H8/500 Series
459 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3.5.6 Bit Manipulations
Table 3-14 describes the four bit-manipulation instructions.
Table 3-14 Bit-Manipulation Instructions
Instruction Size Function
Bit BSET B/W ¬ (<bit-No.> of <EAd>) Z,
manipu- 1 (<bit-No.> of <EAd>)
lations Tests a specified bit in a general register or memory, then
sets the bit to “1.” The bit is specified by a bit number
given in immediate data or a general register.
BCLR B/W ¬ (<bit-No.> of <EAd>) Z,
0 (<bit-No.> of <EAd>)
Tests a specified bit in a general register or memory, then
clears the bit to “0.” The bit is specified by a bit number
given in immediate data or a general register.
BNOT B/W ¬ (<bit-No.> of <EAd>) Z,
(<bit-No.> of <EAd>)
Tests a specified bit in a general register or memory, then
inverts the bit. The bit is specified by a bit number given
in immediate data or a general register.
BTST B/W ¬ (<bit-No.> of <EAd>) Z
Tests a specified bit in a general register or memory. The
bit is specified by a bit number given in immediate data or
a general register.
Note: B—byte; W—word
56
Downloaded from Elcodis.com electronic components distributor

Table of Contents

Related product manuals