Computer Architecture Concepts - Unsolved Assignment | CGS 3269, Assignments of Computer Architecture and Organization

Material Type: Assignment; Class: Computer Architecture Concepts; Subject: Computer General; University: University of Central Florida; Term: Spring 2005;

Typology: Assignments

Pre 2010

Uploaded on 11/08/2009

koofers-user-25e
koofers-user-25e 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
UCF
School of Computer Science
CGS 3269 Computer Architecture
Summer 2005
DUE 6/2/05
1. Using 4 bit numbers(for example (5)10 = ( 0101)2
Write all positive numbers and all negative numbers that can be represented with
four bits in sign-magnitude, one’s complement, and two’s complement.
(20 points)
2.Using binary numbers of 8 bits(i.e. (28)10 = ( 0001 1100)2 ).
Write the numbers from (1)10 to (20)10 in binary, octal, and hexadecimal.
(15 points)
3.Convert: (10 points)
a) from (18)10 to (?)2
b) from (10011100011)2 to (?)16
c) from (10011100011)2 to (?)8
d) from (10011100011)2 to (?)10
4.Convert to binary and solve the following arithmetic operations using one’s
complement representation : (15 points)
a) (18)10 + (13)10
b) (18)10 - (13)10
c) -(18)10 - (13)10
5.Convert to binary and solve the following arithmetic operations using two’s
complement representation : (15 points)
a) (18)10 + (13)10
b) (18)10 - (13)10
c) -(18)10 - (13)10
6.Using the assembly language explained in class, write a program that computes the
following expression: z ß (a + b) * (c d). The computer will read in the input
values (a, b, c, and d) from the keyboard, and all the input values and the final
result (z) have to be printed out on the printer. In addition, every time an input
value is read in, it must be displayed on the screen. Remember that the instruction
set does not have an instruction to execute multiplication. Use the instructions IN
<value>, to input a value from the keyboard into the accumulator, SCREEN <A>
to display the content of the accumulator on the screen, and PRINT<A> to send
the content of the accumulator to the printer.(25 points)

Partial preview of the text

Download Computer Architecture Concepts - Unsolved Assignment | CGS 3269 and more Assignments Computer Architecture and Organization in PDF only on Docsity!

UCF

School of Computer Science

CGS 3269 Computer Architecture

Summer 2005

DUE 6/2/

  1. Using 4 bit numbers(for example (5) 10 = ( 0101) 2 Write all positive numbers and all negative numbers that can be represented with four bits in sign-magnitude, one’s complement, and two’s complement. (20 points)

2.Using binary numbers of 8 bits(i.e. (28) 10 = ( 0001 1100) 2 ). Write the numbers from (1) 10 to (20) 10 in binary, octal, and hexadecimal. (15 points)

3.Convert: (10 points) a) from (18) 10 to (?) 2 b) from (10011100011) 2 to (?) 16 c) from (10011100011) 2 to (?) 8 d) from (10011100011) 2 to (?) 10

4.Convert to binary and solve the following arithmetic operations using one’s complement representation : (15 points) a) (18) 10 + (13) 10 b) (18) 10 - (13) 10 c) -(18) 10 - (13) 10 5.Convert to binary and solve the following arithmetic operations using two’s complement representation : (15 points)

a) (18) 10 + (13) 10 b) (18) 10 - (13) 10 c) -(18) 10 - (13) 10

6.Using the assembly language explained in class, write a program that computes the following expression: z fl (a + b) * (c – d). The computer will read in the input values (a, b, c, and d) from the keyboard, and all the input values and the final result (z) have to be printed out on the printer. In addition, every time an input value is read in, it must be displayed on the screen. Remember that the instruction set does not have an instruction to execute multiplication. Use the instructions IN , to input a value from the keyboard into the accumulator, SCREEN to display the content of the accumulator on the screen, and PRINT to send the content of the accumulator to the printer.(25 points)