logo

Fundamental of IT

   

Added on  2022-12-19

9 Pages792 Words70 Views
Running head: FUNDERMENTAL OF IT
FUNDERMENTAL OF IT
Name of Student
Institution Affiliation
Fundamental of IT_1
FUNDERMENTAL OF IT
2
QUESTION 1 C
i. Ones Compliments
The highest value that can be represented using N bits is 2(N - 1) - 1 and the highest value that can
be represented is -(2(N - 1) - 1)
We have N = 3 So
Highest value = 2(3 - 1) - 1 = 22 - 1 = 4 - 1 = 3.
Lowest value = - (2(3 - 1) - 1) = - (22 - 1) = -(4 - 1) = -3.
ii. Twos compliment
The highest value that can be represented using N bits is 2(N - 1) - 1 and the highest value that can
be represented is -2(N - 1)
We have N = 3 So
Highest value = 2(3 - 1) - 1 = 22 - 1 = 4 - 1 = 3.
Lowest value = - (2(3 - 1) = - 22 = -4 = -4.
iii. Signed Magnitude
Fundamental of IT_2
FUNDERMENTAL OF IT
3
The highest value that can be represented using N bits is 2(N - 1) - 1 and the highest value that can
be represented is - (2(N - 1) - 1)
We have N = 3 So
Highest value = 2(3 - 1) - 1 = 22 - 1 = 4 - 1 = 3.
Lowest value = - (2(3 - 1) - 1) = - (22 - 1) = -(4 - 1) = -3.
QUESTION 2
Part a
Marie program
ORG 100
INPUT /get input fromuser
STORE num /store the input
Cond, LOAD COUNT / Load count value
SUBT num / Remove num from count to get exact output
ADD ONE
SKIPCOND 000 / if 0 , skip
Fundamental of IT_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Calculation of the Fib (n) with MARIE
|9
|583
|341

MARIE and ISA: Answers to Questions 1-3
|9
|811
|325

Assignment : Computer Organisation and Architecture
|12
|495
|20

Assembly Language Marie Programming
|12
|574
|96

Computer Organization and Architecture Assignment 2: MARIE and ISA
|9
|529
|59

Computer Organization and Architecture - Assignment
|10
|718
|42