TABLE 9-1. Symbolic Convention for Addressing Modes. Register indirect LDA (R1) ACC M[ R1] Refers to Figure 9-4. Addressing mode. Symbolic convention

Similar documents
10-1 C D Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e

TYPES OF INTERRUPTS: -

COMPUTER HARDWARE. Instruction Set Architecture

Introduction. 3 major parts of CPU : Fig Design Examples of simple CPU. In this chapter : Chap. 8. Chap. 8 Central Processing Unit

Fig: Computer memory with Program, data, and Stack. Blog - NEC (Autonomous) 1

Computer Organization and Architecture

CENTRAL PROCESSING UNIT

CENTRAL PROCESSING UNIT

IAS Computer. Instructions

INSTRUCTION SET ARCHITECTURE

SOEN228, Winter Revision 1.2 Date: October 25,

Programming of 8085 microprocessor and 8051 micro controller Study material

8051 Overview and Instruction Set

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

EEM336 Microprocessors I. Arithmetic and Logic Instructions

ENE 334 Microprocessors

Microcontroller Intel [Instruction Set]

The Assembly Language of the Boz 5

ARM Assembly Language. Programming

3.1 DATA MOVEMENT INSTRUCTIONS 45

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

ECE 372 Microcontroller Design Assembly Programming. ECE 372 Microcontroller Design Assembly Programming

complement) Multiply Unsigned: MUL (all operands are nonnegative) AX = BH * AL IMUL BH IMUL CX (DX,AX) = CX * AX Arithmetic MUL DWORD PTR [0x10]

EE 3170 Microcontroller Applications

Computer Architecture

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

Digital Blocks Semiconductor IP

Table 1: Mnemonics Operations Dictionary. Add Accumulators Add B to Y. Add with carry to B. Add Memory to B. Add 16-bit to D And B with Memory

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Computer Architecture /

Digital Blocks Semiconductor IP

It is possible to define a number using a character or multiple numbers (see instruction DB) by using a string.

Instruction Sets: Characteristics and Functions Addressing Modes

Computer Architecture and Organization: L04: Micro-operations

Digital Blocks Semiconductor IP

INSTRUCTION SET OF 8085

Ex : Write an ALP to evaluate x(y + z) where x = 10H, y = 20H and z = 30H and store the result in a memory location 54000H.

By: Dr. Hamed Saghaei

Programming the Motorola MC68HC11 Microcontroller

Microcontroller Systems

Assembly Language Programming of 8085

Q. Classify the instruction set of 8051 and list out the instructions in each type.

Register Transfer Language and Microoperations (Part 2)

CSIS1120A. 10. Instruction Set & Addressing Mode. CSIS1120A 10. Instruction Set & Addressing Mode 1

Computer Organization CS 206 T Lec# 2: Instruction Sets

SN8F5000 Family Instruction Set

8085 INSTRUCTION SET INSTRUCTION DETAILS

Arithmetic and Logic Instructions And Programs

instruction 1 Fri Oct 13 13:05:

Q1: Multiple choice / 20 Q2: Protected mode memory accesses


Lecture 9. INC and DEC. INC/DEC Examples ADD. ADD Examples SUB. INC adds one to a single operand DEC decrements one from a single operand

Intel 8086: Instruction Set

FUBAR RISC Computer Architecture

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

TABLE 8-1. Control Signals for Binary Multiplier. Load. MUL0 Q 0 CAQ sr CAQ. Shift_dec. C out. Load LOADQ. CAQ sr CAQ. Shift_dec P P 1.

COSC 243. Instruction Sets And Addressing Modes. Lecture 7&8 Instruction Sets and Addressing Modes. COSC 243 (Computer Architecture)

8088/8086 Programming Integer Instructions and Computations

Logic Instructions. Basic Logic Instructions (AND, OR, XOR, TEST, NOT, NEG) Shift and Rotate instructions (SHL, SAL, SHR, SAR) Segment 4A

The 6502 Instruction Set

Chapter 4. Operations on Data

CHAPTER 8: Central Processing Unit (CPU)

Assembly Language Programming of 8085

CSCI 2121 Computer Organization and Assembly Language PRACTICE QUESTION BANK

Practical Malware Analysis

Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers

Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers

RCX internals (Revised February 24)

Instruction Set Of 8051

S3.0 : A multicore 32-bit Processor

COMPUTER ORGANIZATION & ARCHITECTURE


Xuan Guo. Lecture XIV: Review of Chapter 3 & 4. CSC 3210 Computer Organization and Programming Georgia State University. March 5, 2015.

Programming. A. Assembly Language Programming. A.1 Machine Code. Machine Code Example: Motorola ADD

Dodatak. Skup instrukcija

Instructions moving data

SPRING TERM BM 310E MICROPROCESSORS LABORATORY PRELIMINARY STUDY

csitnepal Unit 3 Basic Computer Organization and Design

Microcontroller. Instruction set of 8051

EE 3170 Microcontroller Applications

Accumulator and memory instructions 1. Loads, stores, and transfers 2. Arithmetic operations 3. Multiply and divide 4. Logical operations 5. Data test

The Motorola 68HC11 Instruc5on Set

Assembly Language Design

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

M. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

S3C80E5/P80E5/C80E7/P80E7 (Preliminary Spec)

CprE 288 Introduction to Embedded Systems Course Review for Exam 3. Instructors: Dr. Phillip Jones

Universiteit Leiden Opleiding Informatica

DR bit RISC Microcontroller. Instructions set details ver 3.10

... Executing conditional instructions

H8/300L Series Programming Manual

Arithmetic Logic Unit

8051 Instruction Set

V25 TM, V35 TM Family

STRUCTURE OF DESKTOP COMPUTERS

ECE331 Handout 3- ASM Instructions, Address Modes and Directives

3.0 Instruction Set. 3.1 Overview

COMPUTER ORGANIZATION

Transcription:

T-236 Symbolic Convention for Addressing Modes TABLE 9-1 Symbolic Convention for Addressing Modes Refers to Figure 9-4 Addressing mode Symbolic convention Register transfer Effective address Contents of ACC Direct LDA ADRS ACC M[ ADRS] 500 800 Immediate LDA #NBR ACC NBR 251 500 Indirect LDA [ADRS] ACC M[ M[ ADRS] ] 800 300 Relative LDA $ADRS ACC M[ ADRS PC] 752 600 Index LDA ADRS (R1) ACC M[ ADRS R1] 900 200 Register LDA R1 ACC R1 400 Register indirect LDA (R1) ACC M[ R1] 400 700 Mano & Kime Upper Saddle River, New Jersey 07458

T-237 Typical Data Transfer Instructions TABLE 9-2 Typical Data Transfer Instructions Name Load Store Move Exchange Push Pop Input Output Mnemonic LD ST MOVE XCH PUSH POP IN OUT

T-238 Typical Arithmetic Instructions TABLE 9-3 Typical Arithmetic Instructions Name Increment Decrement Add Subtract Multiply Divide Add with carry Subtract with borrow Subtract reverse Negate Mnemonic INC DEC ADD SUB MUL DIV ADDC SUBB SUBR NEG

T-239 Typical Logical and Bit Manipulation Instructions TABLE 9-4 Typical Logical and Bit Manipulation Instructions Name Clear Set Complement AND OR Exclusive-OR Clear carry Set carry Complement carry Mnemonic CLR SET NOT AND OR XOR CLRC SETC COMC

T-240 Typical Shift Instructions TABLE 9-5 Typical Shift Instructions Name Logical shift right Logical shift left Arithmetic shift right Arithmetic shift left Rotate right Rotate left Rotate right with carry Rotate left with carry Mnemonic SHR SHL SHRA SHLA ROR ROL RORC ROLC

T-241 Evaluating Biased Exponents TABLE 9-6 Evaluating Biased Exponents Exponent E in decimal Biased exponent e E 127 Decimal Binary 126 126 127 1 00000001 001 001 127 126 01111110 000 000 127 127 01111111 001 001 127 128 10000000 126 126 127 253 11111101 127 127 127 254 11111110

T-242 Typical Program Control Instructions TABLE 9-7 Typical Program Control Instructions Name Branch Jump Skip next instruction Call procedure Return from procedure Compare (by subtraction) Test (by ANDing) Mnemonic BR JMP SKP CALL RET CMP TEST

T-243 Conditional Branch Instructions Relating to Status Bits in the PSR TABLE 9-8 Conditional Branch Instructions Relating to Status Bits in the PSR Branch condition Mnemonic Test condition Branch if zero BZ Z 1 Branch if not zero BNZ Z 0 Branch if carry BC C 1 Branch if no carry BNC C 0 Branch if minus BN 1 Branch if plus BNN N 0 Branch if overflow BV V 1 Branch if no overflow BNV V 0

T-244 Conditional Branch Instructions for Unsigned Numbers TABLE 9-9 Conditional Branch Instructions for Unsigned Numbers Branch condition Mnemonic Condition Status bits* Branch if higher BH A B C Z 0 Branch if higher or equal BHE A B C 0 Branch if lower BL A B C 1 Branch if lower or equal BLE A B C Z 1 Branch if equal BE A B Z 1 Branch if not equal BNE A B Z 0 *Note that C here is a borrow bit.

T-245 Conditional Branch Instructions for Signed Numbers TABLE 9-10 Conditional Branch Instructions for Signed Numbers Branch condition Mnemonic Condition Status bits Branch if greater Branch if greater or equal Branch if less Branch if less or equal BG BGE BL BLE A B ( N V) Z 0 A B N V 0 A B N V 1 A B ( N V) + Z 1 Mano & Kime Upper Saddle River, New Jersey 07458

T-246 Example Demonstrating Direct Addressing for a Data Transfer Instruction Memory 250 Opcode Mode PC = 250 251 ADRS 252 Next instruction ACC Opcode: Mode: ADRS: Operation: Load ACC Direct address 500 ACC 800 500 Program 800 Data

T-247 Example Demonstrating Direct Addressing in a Branch Instruction Memory 300 Opcode Mode PC = 300 301 ADRS 302 Next instruction ACC Program Opcode: Mode: ADRS: Operation: Branch if ACC = 0 Direct address 500 PC 500 if ACC = 0 PC 302 if ACC 0 500 Instruction Program

T-248 Numerical Example for Addressing Modes PC = 250 250 251 Memory Opcode Mode ADRS or NBR = 500 R1 = 400 252 Next instruction ACC 400 700 500 800 Opcode: Load to ACC 752 600 800 300 900 200

T-249 Memory Stack Memory SP = 101 R1 C B A Address 100 101 102 103 104

T-250 External Interrupt Configuration 1 External interrupts Central processing unit (CPU) End of execution of instruction 2 3 4 EI INTACK Enable-interrupt flip-flop Interrupt acknowledge Interrupt vector address IVAD PC To memory stack Mano & Kime Upper Saddle River, New Jersey 07458