IPT - A Virtual Approach IPT A Virtual Approach by Peter Whitehouse
Quick Links:
 
 
Information and Intelligent Systems Social and Ethical Implications Human Computer Interaction Software and Systems Engineering eXercise Files Course Outline and Assessment A-Z of Geeky Acronyms Terrace Work Program 2004 Sillybus FAQ = Frequently Asked Questions Help
 
 
Computer Systems eXercises #2

Representation - Solutions


1.
1. 32 - yes, it is constant
2.  01000111  01001001  01000100  01000100  01000001  01011001

2.
1. there are 2 zero values, and maths operations do not work conventionally
2. 6536 in bin = 0001 1001 1000 1000, so -6536 =  1001 1001 1000 1000
3. when you add a number to it's negative (using sign magnitude), the answer is
            1111 1111 1111 1111 (which is negative zero)
4. do this sum in 2byte binary, the answer ends up as 0000 0000 0000 0000 with a carry digit
   'falling off' the MSB end

3.
1. 4= 0100, 2=0010, so 42 in BCD = 01000010
2. conversion into and out of BCD is FAST
3. conventional maths operations no longer work

4.
Real numbers are stored in a 'fixed size' container - the MSB is used to indicate sign, 
the next 8 bits are used to represent the exponent, the remainder is used to 'approximate' 
the mantissa - that accuracy that doesn't fin in the remaining space is TRUNCATED

wonko@wonko.info
©Copyright t 1992..2018+. Edition 26.150117
wonkosite
Creative Commons License
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 2.1 Australia License
.