1. BCD
· BCD (Binary Code Decimal)
· 1 byte = 4 bit, 24 kombinasi = 16 kombinasi kode dari kombinasi hanya 10 yang dipakai
DESIMAL
|
KODE BCD
| |||
0
|
0
|
0
|
0
|
0
|
1
|
0
|
0
|
0
|
1
|
2
|
0
|
0
|
1
|
0
|
3
|
0
|
0
|
1
|
1
|
4
|
0
|
1
|
0
|
0
|
5
|
0
|
1
|
1
|
0
|
6
|
0
|
1
|
1
|
0
|
7
|
0
|
1
|
1
|
1
|
8
|
1
|
0
|
0
|
0
|
9
|
1
|
0
|
0
|
1
|
10
| ||||
11
| ||||
12
| ||||
13
| ||||
14
| ||||
15
|
Data disimpan di komputer pada main memory untuk di proses.
2. SBCDIC
· SBCDIC = Standard Binary Coded Decimal Interchange Code
· 1 byte = 6 bit, 26 kombinasi = 64 kombinasi kode
· 10 angka
· 26 huruf besar
· 28 simbol khusus
· Kode SBCDIC di bagi 2 Zone
o Zone Alphabet (AB)
o Zone Numerik (8 4 2 1)
Alphabet Numeric
A
|
B
|
8
|
4
|
2
|
1
|
AB
00 : angka (0-9)
11 : huruf (A-I)
10 : huruf (J-R)
01 : huruf (S-Z)
BCD 6 0110
SBCDIC 6 00 0110
TABEL SBCDIC
0-9
A
|
B
|
8
|
4
|
2
|
1
|
CHAR
| ||
0
|
0
|
0
|
0
|
0
|
0
|
0
| ||
0
|
0
|
0
|
0
|
0
|
1
|
1
| ||
0
|
0
|
0
|
0
|
1
|
0
|
2
| ||
0
|
0
|
0
|
0
|
1
|
1
|
3
| ||
0
|
0
|
0
|
1
|
0
|
0
|
4
| ||
0
|
0
|
0
|
1
|
0
|
1
|
5
| ||
0
|
0
|
0
|
1
|
1
|
0
|
6
| ||
0
|
0
|
0
|
1
|
1
|
1
|
7
| ||
0
|
0
|
1
|
0
|
0
|
0
|
8
| ||
0
|
0
|
1
|
0
|
0
|
1
|
9
|
A-I
A
|
B
|
8
|
4
|
2
|
1
|
CHAR
| ||
1
|
1
|
0
|
0
|
0
|
1
|
A
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