Tabled-1. binary conversion table, Tabled-2. setting bit 3, Table d-1 – NETGEAR XM128 ISDN User Manual
Page 117: Table d-2
Reference Guide for the Model XM128 ISDN Digital Modem
Status Registers and Result Codes
D-3
2.
to convert the decimal bit value to binary.
3.
to perform a logic OR operation with the value to set bit 3 to 1 (binary).
4.
to invert the value using a logic NOT operation and then perform a logic
AND operation to set bit 3 to 0 (binary).
5.
Using the resulting decimal value, type the ATS38=n command to set the register.
Table D-1.
Binary conversion table
Bit
Binary
value
Decimal
value
Hexadecimal
value
0
00000001
1
$01
1
00000010
2
$02
2
00000100
4
$04
3
00001000
8
$08
4
00010000
16
$10
5
00100000
32
$20
6
01000000
64
$40
7
10000000
128
$80
Table D-2.
Setting bit 3
Operation
Example 1
Binary
Decimal
Hexadecimal
Example 2
Binary
Decimal
Hexadecimal
OR
10001000
136
$88
01000000
64
$40
00001000
8
$08
00001000
8
$08
10001000
136
$88
01001000
72
$48
NOT
00001000
8
$08
00001000
8
$08
11110111
247
$F7
11110111
247
$F7
AND
10001000
136
$88
01000000
64
$40
10000000
128
$80
01000000
64
$40