Kamis, 31 Maret 2011

KODE 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
1.      Zone Alphabet (AB)
2.      Zone Numerik (8 4 2 1)

Alpahbet
Numeric
A
B

8
4
2
1

B
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
1
1

0
0
1
0

B
1
1

0
0
1
1

C
1
1

0
1
0
0

D
1
1

0
1
0
1

E
1
1

0
1
1
0

F
1
1

0
1
1
1

G
1
1

1
0
0
0

H
1
1

1
0
0
1

I

A-I
A
B

8
4
2
1

CHAR
1
0

0
0
0
1

J
1
0

0
0
1
0

K
1
0

0
0
1
1

L
1
0

0
1
0
0

M
1
0

0
1
0
1

N
1
0

0
1
1
0

O
1
0

0
1
1
1

P
1
0

1
0
0
0

Q
1
0

1
0
0
1

R


A-I
A
B

8
4
2
1

CHAR
1
1

0
0
1
0

S
1
1

0
0
1
1

T
1
1

0
0
0
0

U
1
1

0
1
0
1

V
1
1

0
1
1
0

W
1
1

0
1
1
1

X
1
1

1
0
0
0

Y
1
1

1
0
0
1

Z