Computer Architecture Lecture 12 by Engineer A. Lecturer Aymen Hasan AlAwady 17/3/2014 University of Kufa - Information Technology Research and Development.

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

Instruction Set Architecture
AMIE NBCAFE VIDEO TUTORIAL ON W HAT IS A FLAG OF A M ICROPROCESSOR 8085 AND ROLE OF IT ? Lecture by Subham Dutta See at
TK 2633 Microprocessor & Interfacing
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
TK2633: MICROPROCESSOR & INTERFACING
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.
8051 ASSEMBLY LANGUAGE PROGRAMMING
Parul Polytechnic Institute Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name.
1.6 Signed Binary Numbers.
INSTRUCTION SET OF MICROPROCESSOR 8085
Machine Instruction Characteristics
Binary Arithmetic & Data representation
Computer Architecture Lecture 13 – part 2 by Engineer A. Lecturer Aymen Hasan AlAwady 7/4/2014 University of Kufa - Information Technology Research and.
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
Chapter 4 - Implementing Standard Program Structures in 8086 Assembly Language from Microprocessors and Interfacing by Douglas Hall.
Computer Architecture Lecture 12 by Engineer A. Lecturer Aymen Hasan AlAwady 25/3/2014 University of Kufa - Information Technology Research and Development.
TK2633 : MICROPROCESSOR & INTERFACING Lecture 10: Fixed Point Arithmetic Lecturer: Ass. Prof. Dr. Masri Ayob.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Computer Architecture Lecture 13 – part 1 by Engineer A. Lecturer Aymen Hasan AlAwady 31/3/2014 University of Kufa - Information Technology Research and.
The 8051 Microcontroller and Embedded Systems
Ass. Prof. Dr Masri Ayob Lecture 5: Arithmetic and Logic Instructions TK 2633: Microprocessor & Interfacing.
Computer Architecture Lecture 11 by Engineer A. Lecturer Aymen Hasan AlAwady 10/3/2014 University of Kufa - Information Technology Research and Development.
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
Agenda Character representation Numerical Conversions ASCII EBCDIC
Digital System Design using VHDL
Computer Architecture Lecture 5 by Engineer A. Lecturer Aymen Hasan AlAwady 25/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Assembly Language Programming of 8085 BY Prof. U. V. THETE Dept. of Computer Science YMA.
Computer Architecture Lecture 14 by Engineer A. Lecturer Aymen Hasan AlAwady 14/4/2014 University of Kufa - Information Technology Research and Development.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
CSC 3210 Computer Organization and Programming
Gunjeet Kaur Dronacharya Group of Institutions COUNTERS AND TIME DELAYS LECTURE 3.
Addressing Modes of 8085 μP PRESENTED BY:- KRISHNA BALLABH GUPTA
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
Topic: Binary Encoding – Part 2
Topic: Binary Encoding – Part 1
Unit 1 Instruction set M.Brindha AP/EIE
PROGRAMMING OF 8085 PROCESSOR
Assembly Language Programming of 8085
Microprocessor T. Y. B. Sc..
Microprocessor Systems Design I
Lecture 7: Repeating a Known Number of Times
Computer Science 210 Computer Organization
3.Instruction Set of 8085 Consists of 74 operation codes, e.g. MOV
Microprocessor Systems Design I
BYTE AND STRING MANIPULATON
1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor.
Counters & Time Delays.
Introduction to 8085 Instructions
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 3 & 4 Part 1
COMP3221: Microprocessors and Embedded Systems
Additional data transfer and 16 bit arithmetic instruction Lecture 1
Memory Organisation Source: under
Computer Science 210 Computer Organization
Detailed Review of the 8085 Instruction Set.
Symbolic Instruction and Addressing
INSTRUCTION SET OF 8085.
TK2633: MICROPROCESSOR & INTERFACING
Table 1.1 Powers of Two.
Chapter 6 –Symbolic Instruction and Addressing
CS-401 Computer Architecture and Assembly Language Programming
Computer Architecture CST 250
Computer Operation 6/22/2019.
Counter Fundamentals Presented by :
Part I Data Representation and 8086 Microprocessors
Presentation transcript:

Computer Architecture Lecture 12 by Engineer A. Lecturer Aymen Hasan AlAwady 17/3/2014 University of Kufa - Information Technology Research and Development Center 1 1

1. Data Formats In an 8-bit microprocessor, data can be represented in one of four formats : ASCII BCD Signed Integer Unsigned Integer. It is important to recognize that the microprocessor deals with 0’s and 1’s. It deals with values as strings of bits. It is the job of the user to add a meaning to these strings. 2

1. Data Formats. Cont.. Assume the Accumulator contains the following value: There are four ways of reading this value: It is an unsigned integer expressed in binary, the equivalent decimal number would be 65. It is a number expressed in BCD (Binary Coded Decimal) format. That would make it, 41. It is an ASCII representation of a letter. That would make it the letter A. It is a string of 0’s and 1’s where the first 1 and the sixth bits are set to 1 while all other bits are set to 0. ASCII stands for American Standard Code for Information Interchange. 3

1. Counters & Time Delays Counters A loop counter is set up by loading a register with a certain value. Then using the DCR (to decrement) and INR (to increment) the contents of the register are updated. A loop is set up with a conditional jump instruction that loops back or not depending on whether the count has reached the termination count. EX: JNZ 4

2. Counters The operation of a loop counter can be described using the following flowchart. MVI C, 15H LOOP: DCR C JNZ LOOP 5 DCR or INR

3. Using a Register Pair as a Loop Counter Using a single register, one can repeat a loop for a maximum count of 255 times. It is possible to increase this count by using a register pair for the loop counter instead of the single register. A minor problem arises in how to test for the final count since DCX and INX do not modify the flags. However, if the loop is looking for when the count becomes zero, we can use a small trick by Oring the two registers in the pair and then checking the zero flag. 6

3. Using a Register Pair as a Loop Counter The following is an example of a loop set up with a register pair as the loop counter. LXI B, 1000H LOOP: DCX B MOV A, C ORA B JNZ LOOP 7

8 End of lecture 12