COMPUTER INSTRUCTIONS

Slides:



Advertisements
Similar presentations
ARITHMETIC LOGIC SHIFT UNIT
Advertisements

The CPU Revision Typical machine code instructions Using op-codes and operands Symbolic addressing. Conditional and unconditional branches.
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Chapters 5 - The LC-3 LC-3 Computer Architecture Memory Map
Chapters 4 & 5: LC-3 Computer Architecture Machine Instructions Assembly language Programming in Machine and Assembly Language.
Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009
Assembly & Machine Languages
MANINDER KAUR RAM and ROM Chips 24-Nov
Lecture 18 Last Lecture Today’s Topic Instruction formats
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
How Computers Work Dr. John P. Abraham Professor UTPA.
Bus Architecture Memory unit AR PC DR E ALU AC INPR 16-bit Bus IR TR
Computer System Architecture ESGD2204
Machine Instruction Characteristics
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Chapter No 5 Basic Computer Organization And Design.
CONTROL UNIT OPERATION MICROPROGRAMMED CONTROL. 2.
Exam2 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
The structure COMPUTER ARCHITECTURE – The elementary educational computer.
Execution of an instruction
Module : Algorithmic state machines. Machine language Machine language is built up from discrete statements or instructions. On the processing architecture,
PROGRAMMING THE BASIC COMPUTER
1 Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can be specified with register transfer statements.
Lec 5 Basic Computer Organization
Computer Architecture and Organization
A summary of TOY. 4 Main Components Data Processor Control Processor Memory Input/Output Device.
M. Mateen Yaqoob The University of Lahore Spring 2014
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.
Instruction.
Ch5. 기본 컴퓨터의 구조와 설계.
What is a program? A sequence of steps
8085 processor.
Computer Organization Instructions Language of The Computer (MIPS) 2.
Instruction Sets. Instruction set It is a list of all instructions that a processor can execute. It is a list of all instructions that a processor can.
Basic Computer The following discussions are based on a fictitious computer called “Basic Computer” by the author of the textbook It’s a much better way.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
1 M. Morris Mano Computer System Architecture Chapter 6: Programming the Basic Computer 박 찬식 교육관 325 호,
Instruction Memory value Description ADD1xx Add the value stored at memory address xx to the value in the accumulator register SUB2xx Subtract the value.
Chapter 5 Computer Organization TIT 304/TCS 303. Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can.
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Basic Computer Organization and Design
PROGRAMMING THE BASIC COMPUTER
COMPUTER ARCHITECTURE
Symbol Hex Code Description I=0 I=1
Micro-Operations A computer executes a program Fetch/execute cycle
ADVANCED PROCESSOR ARCHITECTURE
Computer Organization and Design
William Stallings Computer Organization and Architecture 8th Edition
Design of the Control Unit for Single-Cycle Instruction Execution
BASIC COMPUTER ORGANIZATION AND DESIGN
The Processor and Machine Language
Assembler CASE Tool.
Design of the Control Unit for One-cycle Instruction Execution
Instruction and Control II
Processor Organization and Architecture
Programmer’s View of the EAGLE
By: A. H. Abdul Hafez Computer Architecture and Organization: L06: Stored program and Instruction code.
Computer Architecture and Organization: L07: Control Sequence
MANINDER KAUR Maninder Kaur 1
Chapter 6 Programming the basic computer
CS501 Advanced Computer Architecture
COMPUTER ORGANIZATION AND ARCHITECTURE
Chapter 7 Microprogrammed Control
Little Man Computer.
Presentation transcript:

COMPUTER INSTRUCTIONS MANINDER KAUR professormaninder@gmail.com Maninder Kaur professormaninder@gmail.com www.eazynotes.com

INSTRUCTION FORMAT An instruction format or instruction code is a group of bits used to perform a particular operation on the data stored in computer. Processor fetches an instruction from memory and decodes the bits to execute the instruction. Different computers may have their own instruction set. Maninder Kaur professormaninder@gmail.com www.eazynotes.com

INSTRUCTION FORMAT Instruction code is divided into two parts namely operation code and address of data. Operation code consisting group of bits to define an operation such as add, subtract, multiply etc. Maninder Kaur professormaninder@gmail.com www.eazynotes.com

INSTRUCTION FORMAT In an instruction format: First 12 bits (0-11) specify an address. Next 3 bits specify operation code (opcode). Left most bit specify the addressing mode I I = 0 for direct address I = 1 for indirect address Maninder Kaur professormaninder@gmail.com www.eazynotes.com

TYPES OF INSTRUCTIONS The basic computer has three 16-bit instruction code formats: Memory Reference Instructions Register Reference Instructions Input/Output Instructions Maninder Kaur professormaninder@gmail.com www.eazynotes.com

Memory Reference Instructions In Memory reference instruction: First 12 bits(0-11) specify an address. Next 3 bits specify operation code (opcode). Left most bit specify the addressing mode I I = 0 for direct address I = 1 for indirect address (Opcode = 000 through 111) Maninder Kaur professormaninder@gmail.com www.eazynotes.com

Memory Reference Instructions In Memory reference instruction: first 12 bits (0-11) specify an address. The address field is denoted by three x’s (in hexadecimal notation) and is equivalent to 12-bit address. The last mode bit of the instruction represents by symbol I. When I = 0, the last four bits of an instruction have a hexadecimal digit equivalent from 0 to 6 since the last bit is zero (0). When I = 1 the last four bits of an instruction have a hexadecimal digit equivalent from 8 to E since the last bit is one (1). Maninder Kaur professormaninder@gmail.com www.eazynotes.com

Memory Reference Instructions Hexadecimal code Symbol I = 0 I = 1 Description AND 0xxx 8xxx AND memory word to AC ADD 1xxx 9xxx ADD memory word to AC LDA 2xxx Axxx LOAD Memory word to AC STA 3xxx Bxxx Store content of AC in memory BUN 4xxx Cxxx Branch unconditionally BSA 5xxx Dxxx Branch and save return address ISZ 6xxx Exxx Increment and Skip if zero Maninder Kaur professormaninder@gmail.com www.eazynotes.com

Register Reference Instructions In Register Reference Instruction: First 12 bits (0-11) specify the register operation. The next three bits equals to 111 specify opcode. The last mode bit of the instruction is 0. Therefore, left most 4 bits are always 0111 which is equal to hexadecimal 7. Maninder Kaur professormaninder@gmail.com www.eazynotes.com

Register Reference Instructions Symbol Hexadecimal code Description CLA 7800 Clear AC CLE 7400 Clear E CMA 7200 Complement AC CME 7100 Complement E CIR 7080 Circulate right AC and E CIL 7040 Circulate left AC and E INC 7020 Increment AC SPA 7010 Skip next instruction if AC positive SNA 7008 Skip next instruction is AC is negative SZA 7004 Skip next instruction is AC is 0 SZE 7002 Skip next instruction is E is 0 HLT 7001 Halt computer Maninder Kaur professormaninder@gmail.com www.eazynotes.com

I/O Reference Instructions In I/O Reference Instruction: First 12 bits (0-11) specify the I/O operation. The next three bits equals to 111 specify opcode. The last mode bit of the instruction is 1. Therefore, left most 4 bits are always 1111 which is equal to hexadecimal F. Maninder Kaur professormaninder@gmail.com www.eazynotes.com

I/O Reference Instructions Symbol Hexadecimal code Description INP F800 Input character to AC OUT F400 Output character from AC SKI F200 Skip on input flag SKO F100 Skip on Output flag ION F080 Interrupt on IOF F040 Interrupt off Maninder Kaur professormaninder@gmail.com www.eazynotes.com