Computer Systems 2009-2010 Week 8: 3-bit – The Display Amanda Oddie.

Slides:



Advertisements
Similar presentations
Week 3. Assembly Language Programming  Difficult when starting assembly programming  Have to work at low level  Use processor instructions >Requires.
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
The Binary Numbering Systems
Hardware. Basic Computer System Central Processing Unit Input Devices Output Devices Backing Storage Devices.
1 Lecture-2 CSIT-120 Spring 2001 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
The Binary Machine Modern high-level programming languages are designed to make programming easier. On the other end, the low level, all modern digital.
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
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.
Systems Environment 3 Quick Revision Review of Exercises Introduction to TOM TOM Exercises.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Implementation of a Stored Program Computer
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
Computer Architecture
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Assembly & Machine Languages
Basics of a Computer Graphics System Introduction to Computer Graphics CSE 470/598 Arizona State University Dianne Hansford.
Topics Introduction Hardware and Software How Computers Store Data
CPS120: Introduction to Computer Science
CSCI-235 Micro-Computers in Science Hardware Part II.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction to Computer Science.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Instruction Set Architecture
Machine Instruction Characteristics
Computer Programming Basics Assistant Professor Jeon, Seokhee Assistant Professor Department of Computer Engineering, Kyung Hee University, Korea.
Computers Inside and Out
Raster-scan system In addition to the central processing unit a special purpose processor called the video controller or display controller is used to.
ECE291 Computer Engineering II Lecture 9 Josh Potts University of Illinois at Urbana- Champaign.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Requirements for an Internet Connection The Internet is the largest data network on earth. Connection to the Internet can be broken down into the physical.
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
Skill Area 311 Part A. Lecture Overview Binary Numbers Binary Arithmetic ASCII Code Machine Code Instruction Format Advantages and disadvantages of machine.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
Implementation of a Stored Program Computer ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides2.ppt Modification date: Oct 16,
What is a computer? A computer is a device that:
Types of Data. Numbers Text Pictures Sound Video.
Lecture 15 Today’s lecture MARIE programming Assembler
Computer Systems Week 7: Looping and Input/Output with 3-bit Alma Whitfield.
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
Computer Hardware Basic Computer Concepts Data Representation and Digital Electronics  Data Representation  makes it possible to convert letters, sounds,
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
GCSE ICT Storing data - Internal memory, backing storage, and measuring memory.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Computer Systems Week 6: The Computer System Alma Whitfield.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
What is a program? A sequence of steps
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Chapter 2 HAEDWAER.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Lecture 11 Text mode video
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
F453 Module 8: Low Level Languages 8.1: Use of Computer Architecture.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Binary Representation in Text
Binary Representation in Text
Topics Introduction Hardware and Software How Computers Store Data
Control Unit Lecture 6.
Introduction to Computers
Data Encoding Characters.
Topics Introduction Hardware and Software How Computers Store Data
Learning Intention I will learn how computers store text.
Chapter 3 - Binary Numbering System
Presentation transcript:

Computer Systems Week 8: 3-bit – The Display Amanda Oddie

2 What we did last time STD 30 sends to printer LDD 31 gets data from keyboard We can load programs from hard disc We can read a data file with LDD 29

3 What we shall do today Mnemonics and binary The ASCII Character Set The 3-bit display Switching from pixel mode to character mode

4 Mnemonics So far all our instructions have been written as Mnemonics. Mnemonics are easier for humans to understand 3-bit is able to understand mnemonics but real computers can only understand binary they need a special program called an assembler to translate the mnemonics into binary

5 Mnemonics MnemonicBrief meaning 000STPhalt 001LDDload accumulator direct 010LDIload accumulator immediate 011STDstore accumulator direct 100ADDadd to accumulator 101SUBsubtract from accumulator 110JMPjump to next instruction 111JEZjump to next instruction if contents of accumulator is zero

6 A 3-bit instruction in binary STP 001LDD 010LDI 011STD 100ADD 101SUB 110JMP 111JEZ op-code is 010. The mnemonic is LDI

7 A 3-bit instruction in binary STP 001LDD 010LDI 011STD 100ADD 101SUB 110JMP 111JEZ This represents the number to be copied into the accumulator. It is in the form of a binary number

8 Decimal and Binary numbers 357 in decimal is interpreted as: i.e. three(3) 100s and five (5) 10s and seven(7) units

9 Decimal and Binary numbers in binary is interpreted as: i.e. zero 16s plus one 8 plus one 4 plus one 2 plus one unit =

10 A simple program What will end up in the AC ? Remember: First 3 digits are the OP-CODE, last 5 digits are the OPERAND! Try it on the exercise handout

11 A simple program What will end up in the AC ? LDI 10 STD 20 ADD 20 STD 30 SUB 20 STP Much easier, that ’ s why mnemonics were developed Accumulator ends up with 10

12 Memory mapped locations Locations 18 – 25 are mapped directly to the display device Location 26 is also connected to the display device. It determines the screen mode

13 Graphics hardware Data structure corresponding to the array of pixels in the monitor Stored in main memory or video adapter Scans the frame buffer Activates corresponding pixels on monitor Display Program

14 Scanning the display Full screen scan every 10 milliseconds (Refresh rate)

15 The Display A display is made up of an array of dots that are either lit or unlit. The dots are called pixels, which is derived from the phrase picture elements. The image on the typical display is made up from at least tens of thousands of such pixels.

16 The Display The closer together the pixels are, the sharper the image on screen. The distance between pixels on a computer monitor screen is called its dot pitch and is measured in millimeters. Most monitors have a dot pitch of 0.28 mm or less.

17 3-bit display The 3-bit display is made up of 64 dots 8 pixels across 8 lines down Each line is at a separate memory address starting at location 18 A binary 1 will signify to light the pixel A binary 0 will not light the pixel

18 A simple program What will be displayed?

19 Confused? Let’s convert the decimal 255 to binary

20 A simple program LDD 10 STD 18 STD 19 STD 20 STD 21 STD 22 STD 23 STD 24 STD 25 STP Question: What will be displayed? Memory Address 10 contains the value 255

21

22 Character Mode Memory Address 26 is reserved for display mode If the value in this address changes from empty or 0 then the display will switch to character mode Each memory address from 18 – 25 now represents one line of text with positions for 8 characters the first letter appears in location 18, the second in location 19, the third in location 20 and so forth

23 Character Mode Characters in computers are represented by numbers The number is based on the ASCII codes ASCII – American Standard Code for Information Interchange

24 ASCII Codes ‘A’ has ASCII Code 65 ‘a’ has ASCII Code 65

25 What happens here? 0 LDI 1 1 STD 26 2 LDD 6 3 STD 18 4 STP

26 Outcome 0 LDI 1 1 STD 26 2 LDD 6 3 STD 18 4 STP

27 What exactly happens? 1 is copied into the accumulator 1 is copied from the accumulator to location 26 this sets the display to character mode 65 is copied from location 16 into the accumulator 65 is copied from the accumulator to location 18 Location 18 is mapped to the display unit which is now in character mode so it will display the character representation for 65 which is A 0 LDI 1 1 STD 26 2 LDD 6 3 STD 18 4 STP

28 A little more complex 0 LDI 1 1 STD 26 2 LDD 9 3 STD 18 4 ADD 26 5 STD 19 6 ADD 26 7 STD 20 8 STP 9 65

29 A little more complex Try it on the exercise sheet

30 Outcome 0 LDI 1 1 STD 26 2 LDD 9 3 STD 18 4 ADD 26 5 STD 19 6 ADD 26 7 STD 20 8 STP 9 65

31 What about now? 0 LDI 1 1 STD 26 2 LDD 8 3 STD 18 4 SUB 26 5 JEZ 7 6 JMP 3 7 STP 8 65

32 Outcome after a number of iterations 0 LDI 1 1 STD 26 2 LDD 8 3 STD 18 4 SUB 26 5 JEZ 7 6 JMP 3 7 STP 8 65

33 Final outcome 0 LDI 1 1 STD 26 2 LDD 8 3 STD 18 4 SUB 26 5 JEZ 7 6 JMP 3 7 STP 8 65

34 Last Week Last week we looked at the hard disk and data files Data files could contain numbers that represent text Remember location 29 is mapped to the disk buffer

35 Question – What will be displayed?

36 Next Week! The final lecture on 3-bit Focuses on 3-bit and networking Network Status Network Data Frame Buffer Destination Address and so forth!

37 3-bit is not so complicated?

38 Any Questions?