assignment coa

Upload: hanan-zainal-ii

Post on 27-Feb-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/25/2019 Assignment COA

    1/5

    B01150019 HANAN ZAINAL ABIDINBIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

    TASK 1: B01150019

    a) Hexadecimal number

    b) 16-bits sign-magnitude

    c) 32-bits sign-magnitude

    d) 16-bits 2s complement

    e) 32-bits 2s complement

    = 1011 0000 0001 0001 0101 0000 0000 0001 1001 16

    Cannot be re resented with 16 bits

    Cannot be re resented with 32 bits

    Cannot be re resented with 16 bits

    Cannot be represented with 32 bits

  • 7/25/2019 Assignment COA

    2/5

    B01150019 HANAN ZAINAL ABIDINBIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

    TASK 2: T ! O""#$% ! #' B01150019

    a) Hexadecimal number

    b) 16-bits sign-magnitude

    c) 32-bits sign-magnitude

    d) 16-bits 2s complement

    e) 32-bits 2s complement

    = - 1011 0000 0001 0001 0101 0000 0000 0001 1001 16

    Cannot be re resented with 16 bits

    Cannot be re resented with 32 bits

    Cannot be re resented with 16 bits

    Cannot be represented with 32 bits

  • 7/25/2019 Assignment COA

    3/5

    B01150019 HANAN ZAINAL ABIDINBIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

    TASK 3: IEEE (5)*200+ B01150019

    a) !inar"-32

    b) !inar"-6#

    Cannot be re resented with 32 bits

    1011 0000 0001 0001 0101 0000 0000 0001 1001

    1$011 0000 0001 $ 0001 0101 0000 0000 0001 1001 s$ e $ %

    &ign bit 's) ( 1 = negati e

    *xponent ( 011 0000 0001 16 = +6, 10 e +6, 10 - 1023 10 = -2.# 10

    /raction ( 1 % = 1 0001 0101 0000 0000 0001 1001

    alue ( 1 000101010000000000011001 2 -2.#

    (

  • 7/25/2019 Assignment COA

    4/5

    B01150019 HANAN ZAINAL ABIDINBIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

    TASK ): ASCII C#,!$ HANAN ZAINAL ABIDIN & B01150019

    -. H 4 5 !575

    /. !011.001,

    Char 7ecimal !inar" Hexadecimal

    H +2 100 1000 #86. 100 0001 #1+8 100 1110 #*

    4 ,0 101 1010 .5 +3 100 1001 #,

    +6 100 1100 #C! 66 100 0010 #27 68 100 0100 ##

    space

    32 100 0000 20

    Char 7ecimal !inar" Hexadecimal

    ! +2 100 1000 #86. 100 0001 #1

    +8 100 1110 #*4 ,0 101 1010 .5 +3 100 1001 #,

    +6 100 1100 #C! 66 100 0010 #27 68 100 0100 ##

    space

    32 100 0000 20

  • 7/25/2019 Assignment COA

    5/5

    B01150019 HANAN ZAINAL ABIDINBIT1123 COMPUTER ORGANIZATION & ARCHITECTURE

    APPENDI

    2s complement = 1011 0000 0001 0001 0101 0000 0000 0001 1001

    9&igned : e; = negate 1011 0000 0001 0001 0101 0000 0000 0001 1001

    !inar" = - 0100 1111 1110 1110 1010 1111 1111 1110 0110