84962934-AK-3

35
1 Презентација на податоци

Transcript of 84962934-AK-3

  • 1

  • 2

    ,

    (, )

  • 3

    () R

    -

    di

    dn

    dn-1

    dn-2

    ... d1

    d0

    ,

    0

    R-1.

    :

    R,

    .

    d-1

    d-2

    ... d-m

    ,

    :

  • 4

  • 5

    123

    :

    123.456

    :

  • 6

    0

    1.

    110010102

  • 7

    1359:

    210=1024, 211=2048, 1359 -

    1024 = 335.

    29=512 > 335 (10)

    28=256

  • 8

    147

    ,

    : 1001 0011

  • 9

    ...

  • 10

    -

  • 11

    32-

    ,

    0 2,147,483,647

    -

    .

    (1000...000)2

    (-2,147,483,648)10

    (-231),

    (-1)10

    =(111...111)2

    .

    ,

    ,

    (-2,147,483,648)10

    .

    -

    ,

    x + (-x) = 0.

    1

    -

    (sign bit).

    0

    1, 1

    0,

    1

    .

  • 12

    -

    .

    -

    ()

    .

    ,

    .

    .

    (

    ).

  • 13

    :

    ()

    .

    .

  • 14

    ,

    .

    .

    ,

    ,

    ,

    .

    ,

    (scientific

    ) ,

    : *,

    .

  • 15

    IEEE 754 .

    .

    :

    32

    8

    , 23

    1

    64

    11

    , 52

    1

  • 16

    (bias)

    .

    32

    ,

    127,

    1023.

    SM

    (-1)S*(1+Mantisa)*2(Eksponenet -

    Bias)

    S

    ,

    bias

  • 1710

    =100012

    0,100012

    *25

    ,

    14

    5

    25=32, 16

    5+16=21

    17

    0 00101 10001000

    0 10101 10001000

  • 18

    ,

    .

  • 19

  • 20

    14-

  • 21

    -

    101

    00000101

    000000000000101

    -

    1012

    5.

    4

    8 .

    01012

    000001012

    1010111110110010

    1010 1111 1011 0010.

    :

    0.

    .

  • 22

    0

    7:

    16-bit

    0

    15

    :

    0

    low order

    (L.O.) .

    high order (H.O.) .

  • 23

    (Bit) -

    (Nibble) -

    ,

    (Byte)

  • 24

    (Word)

    16

  • 25

    (Double Word)

    32

  • 26

  • 27

    shift

    rotate.

    left shifts, left rotates,

    right shifts,

    right rotates.

  • 28

  • 29

    .

    .

    .

    Binary-Coded Decimal

    EBCDIC

    ASCII

    Unicode

  • 30

    Binary-Coded Decimal

    Binary-coded decimal (BCD)

    IBM

    mainframe-

    midrange .

    4-bit

    8-bit

    zone

    digit.

    BCD

    :

    unsigned

    1111;

    1100;

    1101.

    40%

    .

    . 0.3

    .

    8

    0.296875,

    1.05%.

    BCD,

    1111 0011,

    .

  • 31

    Binary-Coded Decimal

    BCD

    ,

    .

    packed decimal numbers..

    -1265

    3

    BCD.

    zoned-decimal

    1265 :

    1111 0001 1111 0010 1111 0110 1111 0101

    0001 0010 0110 0101

    low-order

    high-order digit

    3

    :

  • 32

    EBCDIC

    IBM

    BCD

    6

    8 ,

    Extended Binary Coded Decimal Interchange Code (EBCDIC).

    digit

    zone

    .

    .

    a

    1000 0001

    3

    1111 0011

    EBCDIC.

    2,

  • 33

  • 34

    ASCII

    ASCII

    (telex)

    .

    ASCII

    32

    , 10 , 52

    (

    ), 32

    (

    $

    #),

    space .

    8-

    .

    (Parity)

    .

    on

    off

    ASCII A, 7

    100 0001

    0100 0001

    ASCII C, 7

    100 0011

    1100 0011

    .

    1980

    12810

    25510

    .

    .

  • 35

    Unicode

    EBCDIC

    ASCII

    .

    1991,

    Unicode -

    Unicode Consortium.

    Unicode

    16-

    ASCII

    Latin-1

    .

    Unicode

    16

    .

    Unicode

    .

    ... Slide Number 17 Binary-Coded DecimalBinary-Coded DecimalEBCDICSlide Number 33ASCIIUnicode