Worksheet #2 Computer Architecture and System, Slides of Computer Architecture and Organization

Objectives. • To understand the architecture and operation of computer system. • To study the basic components of computer hardware.

Typology: Slides

2022/2023

Uploaded on 05/11/2023

anala
anala 🇺🇸

4.3

(15)

259 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Worksheet #2
Computer Architecture and System
Objectives
To understand the architecture and operation of computer system
To study the basic components of computer hardware
To study the operation and programming language of MU0 machine
1. What is a stored program computer? Explain.
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
2. What is the difference between MCU, MPU and CPU?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
3. What roles does a register play in a processing unit?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
4. What is the memory address in computer system? What is it used for?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
5. What is the difference between assembly language and machine language ?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Name: _____________________________ Student ID: ______________ Date: __________
Name: _____________________________ Student ID: ______________
pf3
pf4

Partial preview of the text

Download Worksheet #2 Computer Architecture and System and more Slides Computer Architecture and Organization in PDF only on Docsity!

Worksheet

Computer Architecture and System

Objectives

 To understand the architecture and operation of computer system  To study the basic components of computer hardware  To study the operation and programming language of MU0 machine

  1. What is a stored program computer? Explain.





  1. What is the difference between MCU, MPU and CPU?










  1. What roles does a register play in a processing unit?







  1. What is the memory address in computer system? What is it used for?





  1. What is the difference between assembly language and machine language?




Name: _____________________________ Student ID: ______________ Date: __________ Name: _____________________________ Student ID: ______________

  1. Convert the following mnemonic code to machine code ( hex format). Mnemonic Code Machine code LDA 5A ADD 5C ADD 5E SUB 60 JGE 10E STO 60 STP
  2. Convert the following mnemonic code to machine code (opcode and operand in binary format). Mnemonic Code Machine code Opcode Operand LDA 6F ADD AB JNE 10 JMP 25 SUB 30 STO 80 STP
  3. Convert the following machine code back to mnemonic code. Machine code Mnemonic Code 0x002C 0x202E 0x 0x 0x12EE 0x 0x
  4. Convert the following machine code (opcode and operand format ) back to mnemonic code. Machine code Mnemonic Code Opcode Operand 0000 0000 0101 0111 0001 0101 0111 0001 0110 0100 0001 0010 0100 0000 0010 0000 0011 0000 0011 0101 0010 1000 0100 0010 0101 0001 0001 0000 0111 0000 0000 0000

What is the data inside register : IR = ……………………………………. ACC = ……………………………………. PC = …………………………………….

What is the data inside Memory Address : 0x000 = …………………..……………… 0x002 = …………..……………………… 0x004 = ……….…………………………. 0x006 = ………………………………….. 0x008 = ………………………………….. 0x010 = ………………………………….. 0x108 = ….……………………………….

  1. Given memory address  100 stores data 0015  102 stores data 000A  104 stores data 0010

After executing the following program

What is the data inside memory address 106 …………………………………..

  1. Given memory address  100 stores data 0ABF  102 stores data 0A  104 stores data 0B  106 stores data 00FD

After executing the following program

What is the data inside memory address 108 ………………………………….

LDA 100

ADD 102

JNE 8

ADD 104

STO 106

STP

LDA 100

JMP 6

ADD 102

JGE C

SUB 104

ADD 106

STO 108

STP