Fujitsu FR60 Computer Hardware User Manual


  Open as PDF
of 1038
 
392
Chapter 28 Bit Search
5.Operation
5.3 Changing Position Detection
(1) Bit position from MSB
(2) Written data (Detection starts once data is written.)
(3) Detects the changing position by scanning from MSB.
(4) Detected bit position
(5) Detection result
A value of ‘32’ is returned as detection result if changing position does not exist.
A value of ‘0’ is not returned as detection result for changing position detection.
Execution example
Write data Read value (Decimal notation)
00100000000000000000000000000000
B
(20000000
H
2
00000001001000110100010101100111
B
(01234567
H
7
00000000000000111111111111111111
B
(0003FFFF
H
14
00000000000000000000000000000001
B
(00000001
H
31
00000000000000000000000000000000
B
(00000000
H
32
11111111111111111111000000000000
B
(FFFFF000
H
20
11111000010010011110000010101010
B
(F849E0AA
H
5
10000000000000101010101010101010
B
(8002AAAA
H
1
11111111111111111111111111111111
B
(FFFFFFFF
H
32
Table 5-1 The Relationship Between the Bit Position and the Value to be Returned (Decimal Notation)
Detected
bit position
Return
value
Detected
bit position
Return
value
Detected
bit position
Return value
Detected
bit position
Return value
31 0 23 8 15 16 7 24
30 1 22 9 14 17 6 25
292211013 18 5 26
283201112 19 4 27
274191211 20 3 28
265181310 21 2 29
2561714 9 22 1 30
2471615 8 23 0 31
Nonexistent 32
11111111111 11 111 2
0123456789 ABCDEF0123456789ABCDEF 0
0000000000 00 000 111000000000 00 000
>>>>>>>>>>>>>>>*
F
H
(15
Decimal
)
Data
Bit position from MSB
Scan
Detection result