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

Slides:



Advertisements
Similar presentations
PROGRAMMING WITH 8085 BTCS-404 (MALP) B.Tech 4th SEM. IT
Advertisements

ITCS 3181 Logic and Computer Systems 2015 B. Wilkinson slides3.ppt Modification date: March 16, Addressing Modes The methods used in machine instructions.
Processor Function Topic 3.
The CPU Revision Typical machine code instructions Using op-codes and operands Symbolic addressing. Conditional and unconditional branches.
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.
Room: Timbalan Pengarah Pusat Komputer Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 4: Introduction.
Computer Organization and Architecture Tutorial 2 Kenneth Lee.
TK 2633 Microprocessor & Interfacing
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
8085 Addressing Modes.  The number & Different kind of ways the programmer can refer to data stored in the memory  The different ways that a microprocessor.
ADDRESSING MODES OF Addressing Modes of  To perform any operation, we have to give the corresponding instructions to the microprocessor.
Parul Polytechnic Institute Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name.
Mr. Gursharan Singh Tatla
INSTRUCTION SET OF MICROPROCESSOR 8085
UNDERSTANDING ASSEMBLY LANGUAGE.
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.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 7.
Computer Architecture Lecture 12 by Engineer A. Lecturer Aymen Hasan AlAwady 17/3/2014 University of Kufa - Information Technology Research and Development.
Ass. Prof. Dr Masri Ayob Lecture 5: Arithmetic and Logic Instructions TK 2633: Microprocessor & Interfacing.
ASSEMBLY LANGUAGE.  Upon completing this topic, you should be able to: Classify the 8085A microprocessor instructions Explain the basic function of common.
Computer Architecture Lecture 03 Fasih ur Rehman.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle.
Dale & Lewis Chapter 5 Computing components
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.
III] Logical Group 1)ANA r : LOGICAL AND REGISTER WITH ACCUMULATOR Format : [A] [A] Λ [r] Addressing : Register addressing Group : Logical group Bytes.
Computer Architecture Lecture 14 by Engineer A. Lecturer Aymen Hasan AlAwady 14/4/2014 University of Kufa - Information Technology Research and Development.
Ass. Prof. Dr Masri Ayob TK 2123 Lecture 14: Instruction Set Architecture Level (Level 2)
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
8 085Microprocessor Temp Reg (8) Accumulator (A reg) Flag flip flops(8) Instruction Register (8) Arithmetic Logic Unit ALU Instruction Decoder and Machine.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني 8085 Instruction Set logic group. Branch group. Stack memory and machine control. Addressing modes.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني 8085 Instruction Set Instruction types. data transfer group. Arithmetic group.
Addressing Modes of 8085 μP PRESENTED BY:- KRISHNA BALLABH GUPTA
8085 Microprocessor Architecture
Seminar On 8085 microprocessor
Gursharan Singh Tatla INSTRUCTION SET OF 8085 Gursharan Singh Tatla Gursharan Singh Tatla
Unit 1 Instruction set M.Brindha AP/EIE
Instruction format Instruction is a command to microprocessor to perform a given task on specified data. Each instruction has two parts: One is the task.
Gunjeet Kaur Dronacharya Group of institutions
Assembly Language Programming of 8085
Microprocessor T. Y. B. Sc..
Detailed Review of the 8085 Instruction Set.
Assembly Language Assembly Language
3.Instruction Set of 8085 Consists of 74 operation codes, e.g. MOV
1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor.
Lecture Set 5 The 8051 Instruction Set.
Introduction to 8085 Instructions
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 3 & 4 Part 2
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 3 & 4 Part 1
8085 microprocessor.
Instruction Formats Each instruction consists of two parts:
Additional data transfer and 16 bit arithmetic instruction Lecture 1
EMT 245: lecture 4: assembly language
R.RAJKUMAR DEPARTMENT OF CSE
Detailed Review of the 8085 Instruction Set.
Prepared by Kenan BOZDAŞ
Chapter 1 Introduction.
INSTRUCTION SET OF 8085.
Programming Examples.
CPU has 6 special locations called registers
Chapter 4: Computer Architecture
Open Education Resource-OER on Microprocessor 8085 Instruction Set By Dr. S. N. Sampat, Team leader Ms. R. P. Merchant, Member Mr. A. K. Bilakhia, Member.
Computer Operation 6/22/2019.
Addressing Modes of 8085.
Presentation transcript:

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

1. Additional Logic Operations 1. Rotate Rotate the contents of the accumulator one position to the left or right. 1.RLC Rotate the accumulator left. Bit 7 goes to bit 0 AND the Carry flag. 2.RAL Rotate the accumulator left through the carry. Bit 7 goes to the carry and carry goes to bit 0. 3.RRC Rotate the accumulator right. Bit 0 goes to bit 7 AND the Carry flag. 4.RAR Rotate the accumulator right through the carry. Bit 0 goes to the carry and carry goes to bit 7. 2

1. 1 Additional Logic Operations RLC vs. RLA 1.RLC ( Rotate Accumulator Left ) 2.RAL ( Rotate Left Through Carry ) 3

2. Rotate instructions examples MVI A,FAh A = RLC A= after RLC Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0 0 Carry flag 1

2. Rotate instructions examples MVI A,FAh A = RAL A= After RAL Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0 0 Carry flag 1

2. Additional Logical Operations Compare Compare the contents of a register or memory location with the contents of the accumulator. 1.CMP R/M Compare the contents of the register or memory location. 2.CPI # Compare the 8-bit number to the contents of the accumulator. Comparison is doing by internal subtraction that does not change the contents of the accumulator. A –(R / M / #) In this instruction there is no specific target for the result. The flag register is affected. It sets the flags (Z, Cy, and S). 6

3. Machine Control 1. HLT Halt Stop executing the program and it used at the end of the program. 2. NOP No Operation No operation Exactly as it says, do nothing. Usually used for delay program during the debugging. 7

4. Instruction Size Depending on the operand type, the instruction may have different sizes. It will occupy a different number of memory bytes. Typically, all instructions occupy one byte only. The exception is any instruction that contains immediate data or a memory address. Instructions that include immediate data use two bytes. One for the opcode and the other for the 8-bit data. Instructions that include a memory address occupy three bytes. One for the opcode, and the other two for the 16-bit address. 8

4.1 Instruction with Immediate Date Operation: Load an 8-bit number into the accumulator. MVIA, 32 Operation: MVIA Operand: The number 32 Binary Code: E 1 st byte nd byte. 9

4.2 Instruction with a Memory Address Operation: go to address Instruction: JMP 2085Opcode: JMP Operand: 2085 Binary code: C3 1st byte nd byte rd byte 10

5. Addressing Modes The microprocessor has different ways of specifying the data for the instruction. These are called “addressing modes”. The 8085 has four addressing modes: 1.Implied Ex: CMA 2.Immediate Ex: MVI B, 45 3.Direct Ex: LDA Register Ex: MOV B, A ( Data is copied from one register to another register). 5.Indirect Ex: LDAX B ( Load the accumulator with the contents of the memory location whose address is stored in the register pair BC). 11

5.1 Indirect Addressing Mode Indirect addressing is used when the data is transferred from the address pointed by the data in a register to other register. Indirect addressing uses the data in a register pair as a 16-bit address to identify the memory location being accessed. The HL register pair is always used in conjunction with the memory register “M”. The BC and DE register pairs can be used to load data into the Accumulator using indirect addressing. 12

13 End of lecture 11