MIPS assembly.

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

Computer Hardware 4 Main Types.
Computer Components.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Computer Hardware.
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Input, Output, Processing and Storage
Computer Architecture and Organization
MIPS assembly. Computer What’s in a computer? Processor, memory, I/O devices (keyboard, mouse, LCD, video camera, speaker), disk, CD drive, …
Elements of a Computer System Dr Kathryn Merrick Thursday 4 th June, 2009.
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Chapter 1 Basic Structure of Computers. Chapter Outline computer types, structure, and operation instructions and programs numbers, arithmetic operations,
CPU Computer Hardware Organization (How does the computer look from inside?) Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge.
Introduction to the Computer System. What is a computer ? A computer is an electronic device that can accept data and instruction, process them or store.
Intro to Computers Computer Apps 1.
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
IT Groundwork ICS3UC - Unit 1 Hardware. Overview of Computer System.
What is a computer? Computer is a device for processing information.
CSC 110 – Intro to Computing Lecture 9: Computing Components.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
7. Peripherals 7.1 Introduction of peripheral devices Computer Studies (AL)
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Studies/ICT SS2
The Computer System CS 103: Computers and Application Software.
Lecture on Central Process Unit (CPU)
Parts and Operation of a Computer
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
C HAPTER 4 OS: C OMPUTER O RGANIZATION TOPICS: The Von Neumann Architecture The CPU.
Computer Organization Instructions Language of The Computer (MIPS) 2.
Hardware Information Created by Nasih 1. Hardware  The physical components of a computer system, including any peripheral equipment such as printers,
Technology Vocabulary Matthew L. Morris. A-D Application- A program or group of programs designed for end users. Data- Distinct pieces of information.
MIPS assembly. Computer  What’s in a computer?  Processor, memory, I/O devices (keyboard, mouse, LCD, video camera, speaker), disk, CD drive, …
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
24/06/20161 Hardware Processor components & ROM. 224/06/2016 Learning Objectives Describe the function and purpose of the control unit, memory unit and.
Chapter 3 Getting Started. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To give an overview of the structure of a contemporary.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
Computer Architecture and Number Systems
Computer Systems Nat 4/5 Computing Science Computer Structure:
CPU Lesson 2.
Computing Science Computer Structure: Lesson 1: Processor Structure
Systems Architecture Keywords Fetch Execute Cycle
Computers’ Basic Organization
Computer Architecture & Operations I
OPERATING SYSTEM CONCEPT AND PRACTISE
Chapter 1: A Tour of Computer Systems
Control Unit Lecture 6.
Chapter 7.2 Computer Architecture
CPU & its Components CPU stands for central Processing Unit
Von Neumann model - Memory
CS703 - Advanced Operating Systems
Microcomputer Architecture
Introduction to Computers
Functional Units.
MIPS assembly.
Introduction to Computers
Operating Systems Chapter 5: Input/Output Management
Von Neumann model - Memory
MIPS Assembly.
Logical Computer System
MIPS Assembly.
Hardware Organization
Understanding input, output and storage devices
Review In last lecture, done with unsigned and signed number representation. Introduced how to represent real numbers in float format.
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
MIPS assembly.
MIPS Assembly.
Presentation transcript:

MIPS assembly

Computer Model What’s in a computer? Processor, memory, I/O devices (keyboard, mouse, LCD, video camera, speaker), disk, CD drive, …

Computer Model Memory Processor register ALU data instruction 0011100..111 0011100..111 0011100..111 instruction I/O device 00111111..111 00111011..111

Registers and ALU A processor has registers and ALU Registers are where you store values (e.g., the value of a variable) The values stored in registers are sent to the ALU to be added, subtracted, anded, ored, xored, …, then the result is stored back in a register. Basically it is the heart of the processor and does the calculation.

Memory Memory is modeled as a continuous space from 0 to 0xffff…ffff. Every byte in the memory is associated with an index, called address. We can read and write: Given the address to the memory hardware, we can read the content in that byte. Given the address and a byte value, we can modify the content in the memory at that addres.

11/27/2018 Program and Data Programs consist of instructions and data, both stored in the memory Instructions are also represented as 0’s and 1’s A program is executed instruction by instruction 11/27/2018 CDA3100 CDA3100

11/27/2018 CDA3100

11/27/2018 GoogleEarth.exe 11/27/2018 CDA3100 CDA3100

11/27/2018 Linux Kernel 11/27/2018 CDA3100 CDA3100

Questions We can store a 10,000 bye array in the register. False. the register size is small

Questions The calculation in the computer happens in the ALU. yes

Questions If byte value in the memory at address 100 is 89, the value at address 101 cannot be smaller than 89. False. The content is independent of the address.

Questions To write to the memory, you only need to provide the value to be written. False. The address, where to write this value to.

Questions If the byte at memory address 100 is currently 63 and we write a new value 78 to address 100, address 101 is going to save 63. False. The old value will be overwritten.