ΠΛΗ10 ΜΑΘΗΜΑ 1.2 (ΕΚΤΥΠΩΣΗ)

download ΠΛΗ10 ΜΑΘΗΜΑ 1.2 (ΕΚΤΥΠΩΣΗ)

of 11

  • date post

    13-Apr-2017
  • Category

    Education

  • view

    2.502
  • download

    0

Embed Size (px)

Transcript of ΠΛΗ10 ΜΑΘΗΜΑ 1.2 (ΕΚΤΥΠΩΣΗ)

  • 10

    1: /

    1.2:

    !

    A. 1.

    1.

    2.

    3.

    4.

    5.

    2.

    1.

    2.

    3. 8 16

    4.

    3.

    1.

    2.

    "#!

    4. ! "

    #$

    1. Bits, Bytes "

    2. " %&

    3. ! "&

    4. !

    1

    5. !

    2

    5. '( ! 2

    1.

    2.

    $:

    A. %1. # 1. # &$

    '# !

    $ ( () &' ! &

    ()' ! ! *!

    !""""""""""

    $' ((# $#&):

    +, ! )! & ( ! '' ! $ -,!

    (($').

    .! ! (# (# $ ( .

    (( ( ! ' 10 ,) & ! 1 !$

    ()* 10- ) ! )

    ' & &, ()'.

    5649

    184

    5833

    11

    1

    2

    $ 1:

    A. %1. # 2. # $

    !

    $, $&$ ! # & ! /'0 2-

    #""""""""""

    $':

    ($ (& (! 3 -,! (2 () & & !) " ! :

    : 1 0 (#" & !)

    : 1 1 (#" & !)

    : 1 0 (& ! 1)

    : 1 1 (& ! 1)

    110110

    11100

    1010010

    1111

    $ 2:

    1011.01

    10.111

    1110.001

    1111

  • 1& 1: &') () $$ :

    $""""""""""

    A. %1. # 2. # $ (&)

    1& 2: &') ! ' (# $$& &

    (' ()' )

    $&$& .

    %""""""""""

    A. %1. # 2. # $ (&)

    A. %1. # 3. # &$

    !

    $, $&$ ! # & ! /'0 8-$

    &""""""""""

    $':

    2! 0 $ &$& -, ()' / (' 15 (7+7+1).

    ' (!& '"( ':

    .".

    ! / 6 # , ()' 6 & & ! ! 0

    ! / 14 # , (#)' 6 & & ! ! 1

    &

    0 8

    1 9

    2 10

    3 11

    4 12

    5 13

    6 14

    7 15

    + 0 + 1

    A. %1. # 2. # &$

    $ 1:

    1:

    $ 2:

    1:

    '""""""""""

    24307

    2714

    27223

    11

    57.07

    11.231

    70.321

    11

  • 1& 1: &') () &$ :

    (""""""""""

    A. %1. # 2. # &$ (&)

    1& 2: &') ! ' (# &$& &

    (' ()' )

    $&$& .

    """"""""""

    A. %1. # 2. # &$ (&)

    A. %1. # 4. # &$

    !

    $, $&$ ! # & ! /'0 16-$

    """"""""""

    $':

    2! 0 $ $&$& -,

    ()' / (' 31 (15+15+1).

    ' (!& '"( ':

    .".:

    ! / 5 #

    ()' ! 5 & & ! 0

    ! / 12 #

    ()' ! C & & ! 0

    ! / 18 #

    ()' ! 2 & & ! 1

    ! / 28 #

    ()' ! C & & ! 1

    &

    0 16

    1 17

    2 18

    3 19

    4 20

    5 21

    6 22

    7 23

    8 24

    9 25

    10() 26

    11() 27

    12(C) 28

    13(D) 29

    14(E) 30

    15(F) 31

    + 1+ 0

    A. %1. # 4. # &$

    $ 1:

    1:

    $ 1:

    1:

    """"""""""

    16F1

    5739

    6E2A

    1

    AA.81

    1C.802

    C7.012

    11

  • 1& 1: &') () 16$ :

    !

    " #$

    %$##$%

    !""""""""""

    A. %1. # 4. # &$ (&)

    1& 2: &') ! ' (# 16$& &

    (' ()' )

    $&$& .

    "

    #""""""""""

    A. %1. # 4. # &$ (&)

    A. %1. # 5. # ''

    !'* !" ($( '' :

    $, $&$ ! # & ! /'0 b-$ #( b ! /

    $""""""""""

    1&: &') ' ():

    &&

    ''

    $':

    !" " # ! (' (b-1)+(b-1)+1=2b-1

    (!& )" ' (# 0 ) b-1 & ' (# b ) 2b-1

    $: (

    (

    A. %2. , 1. , &$

    '# !

    , (# & ! &

    ()' ! ! *!

    %""""""""""

    $'

    +, ! ,) & (# ) ! $ -,!

    (($').

    .! ! , (# $ ( .

    (( ( -, ) ! (# -, ,)

    ) )"! -, )

    ) !$ # -, ,)

    3 5 4 9

    3 7 8(

    3 1 7 1

    14

    4

  • $:

    (

    (

    A. %2. , 1. , &$

    &""""""""""

    $':

    ! $ $$& &! ! ,) )" & '' -, ' (#

    ,) ()"! $*

    3 2 4 9

    3 7 8(

    2 8 7 1

    1412

    $:

    (

    (

    $:

    (

    (

    3 0 7 9

    2 8 8(

    2 7 9 1

    17103 0 0 0 7 9

    2 8 8(

    2 9 9 7 9 1

    1010 10 17

    41 311 1 1 3

    1&: &') ' ( $&$&

    (

    (

    ( (

    '""""""""""

    A. %2. , 1. , &$ (&)

    $: (

    (

    A. %2. , 2. , $

    ! #! -, ) !

    (# -, ,):

    ) -, ).

    ) !$ # -, ,).

    (""""""""""

    $'

    .'# ! $* ( ( ! /0 $ ! $&$&.

    ( )( !(! $$!

    1 1 0 1

    1 1 0(

    0 1 1 1

    23

    21

    $ 4: (

    (

    $ 2: (

    (

    A. %2. , 1. , &$

    """"""""""

    1 0 0 1

    1 1 1(

    0 0 1 0

    22

    1

    $ 3: (

    (

    $ 5: (

    (

    1 1 1 0 0 0

    (

    0 0 1 1 0 1

    2 2 2

    1 0 1 0 1 1

    3

    2

    1 0 1 0

    1 0 1(

    0 1 0 1

    22

    1 1

    2121

    1 0 1 . 0 0 1

    (

    0 0 1 . 1 0 0 1

    1 1 . 1 0 0 11

    22

    2

    3

    2

    2

    1

  • 1& 1: &') ' ,) $$&

    (

    (

    (

    """"""""""

    A. %2. , 2. , $ (&)

    $ 1: (

    (

    A. %2. , 3. , &$ & &$

    ! , $' !" $&$, '':

    ) -, ).

    ) !$ # -, ,).

    ! 16 , $' !" $&$, '':

    ) -, ).

    ) !$ # -, ,).

    """"""""""

    7 3 2

    6 4(

    6 4 6

    1011

    71

    $'

    16$ / ! ! (* $ ! $&$&.

    ( ( (& (! !! (! $&$.

    $: ) (

    (# "

    C A A

    2 F(

    C 7 B

    1010

    152

    1226

    11

    3

    712

    1&: &') ' ,)

    (

    (

    !! #(#

    !""""""""""

    A. %2. , 3. , &$ & &$ (&)

    A. %2. , 4. , ''

    !'* !" ($( '' &! ! , (#

    ( $:

    ! -, ) ! (# -, ,):

    ) b !$ )"! -, )

    ) !$ # )"! -, ,)

    #""""""""""

    1&: &') ' ():

    &(&

    '('

  • $ 1: *

    *

    A. %3. ''('# & 1. ''('#

    ! (' #( ! ! )! (''('# ! )

    $$"&*!

    ()!

    () !! ( ! .

    $""""""""""

    $ 2: *

    *

    5

    5

    10

    5

    15

    5

    20

    1

    2

    3

    4

    101

    101

    1010

    101

    1111

    101

    10100

    $ 1: +

    1:+= (#'(

    $ 2

    A. %3. ''('# & 2.

    ! (' #( ! ! $ ! )

    $$"&*! ,)!

    ,) !! ( ! .

    %""""""""""

    $ 2: +

    1:+= (#'(

    $

    17

    5(

    12

    5(

    7

    5(

    2

    1

    2

    3

    10001

    101(

    1100

    101(

    111

    101(

    10STOP.

  • A. %4. !( *! ! ('2. & )

    + ! $( ! bits "( ! # & ((# bits $( ).

    . (' )" &&)! & ') (!) 1 byte)

    4! byte )" & ') = 8

    (""""""""""

    4 )! (' & ') 8:

    ( ! !( 28

    ! )' ! !( ,& , ( ! !( (#

    0 ) 28-1 ($'$ (# 0 ) 255)

    &$&( *! & / ') # # !

    - (Most Significant Bit MSB) & $# ! $

    - (Least Significant Bit LSB)

    00000000 = 0

    00000001 = 1

    00000010 = 2

    00000011 = 3

    11111100 = 252

    11111101 = 253

    11111110 = 254

    11111111 = 255

    $&

    & ') 8

    (1 byte)

    &$&

    A. %4. !( *! ! ('2. & )

    & $ bits &

    $.

    ! ( ! '# bits (# & ') # ('*! (#

    $!&.

    ! ( ! (

    # bits (# & ') )" ( (overflow) &

    "!! bits ( (/!! & ') (# .

    !""""""""""

    $: &$&( ! (' & ') 8 (1 byte) : 254, 12, 515

    (!:

    3" . 1 # & ') 8 &$&(: 11111110

    3" . 1 # & ') 8 &$&(: 00001100

    3" . 1 # & ') 8 &$&(: 00000011

    )" ("' ($! &$&(&

    #)

    1&: !( ! (& ,& (' & ') 8.

    ( ((* )" ("' (overflow);

    !""""""""""

    A. %4. !( *! ! ('2. & )

    A. %4. !( *! ! ('3. !( !&*! )

    + ! ! & *! (!! 3 #(:

    1 #( ! &.

    # bit (SB) (0 #' ( (0 (+) & 1 (-) )

    !""""""""""

    4 )! (' & ') 8:

    ( ! !( 28-2 =254

    127 ! & & 127 !

    !& &).

    )!

    0 !( $ ,)

    (# & ! ''

    ! (#.

    #( # $! "( ! (!

    00000000 = +0

    00000001 = +1

    00000010 = +2

    00000011 = +3

    01111100 = +124

    01111101 = +125

    01111110 = +126

    01111111 = +127

    10000000 = -0

    10000001 = -1

    10000010 = -2

    10000011 = -3

    11111100 = -124

    11111101 = -125

    11111110 = -126

    11111111 = -127

    ##

    &

    &)

    !&

    &)

  • A. %4. !( *! ! ('3. !( !&*! (' ( 1

    + ! ! & *! (!! 3 #(:

    2 #( ! ! 1.

    .!#!: !), bits : . 0 ! 1 & & 1 ! 0

    !!""""""""""

    4 )! (' & ') 8:

    ( ! !( 28-1 = 255

    127 ! & & 127 !

    !& &) & )! ! 0.

    )!

    0 !( $ ,)

    (# & ! ''

    ! (#.

    (#/' # (!) ! "!& ('* ( 2!

    00000000 = +0

    00000001 = +1

    00000010 = +2

    00000011 = +3

    01111100 = +124

    01111101 = +125

    01111110 = +126