Physics 413 Chapter 2.

Slides:



Advertisements
Similar presentations
Instruction Sets: Characteristics and Functions Addressing Modes
Advertisements

Floyd, Digital Fundamentals, 10 th ed EET 2261 Unit 7 Indexed Addressing Mode Read Mazidi, Chapter 6. Homework #7 and Lab #7 due next week. Quiz next week.
© 2010 Kettering University, All rights reserved..
Chapter 5 Tutorial 5a. Editing and Assembling From Valvano.
H. Huang Transparency No.1-1 The HCS12/MC9S12 Microcontroller Copyright © 2010 Delmar Cengage Learning HCS12 Instruction Examples The LOAD and STORE Instructions.
EET 2261 Unit 3 Assembly Language; Load, Store, & Move Instructions  Read Almy, Chapters 5 and 6.  Homework #3 and Lab #3 due next week.  Quiz next.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2: IT Students.
Programming 68HC11.
CEG 320/520: Computer Organization and Assembly Language Programming1 Assembly Language Programming Machine Code Hand Assembly.
EE 362 Microprocessor Systems and Interfacing © 1-1 Lecture 1: Introduction to Microprocessor Based Systems Microprocessor Architecture Microprocessor.
EET 2261 Unit 5 Tables; Decision Trees & Logic Instructions
The 68HC11 Microcontroller Minnesota State University, Mankato
H. Huang Transparency No.1-1 The 68HC11 Microcontroller Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Low-Level Programming Languages
1 ECE 372 – Microcontroller Design Basic Assembly Programming for(j=0; j
EET 2261 Unit 2 HCS12 Architecture
ECE 265 – LECTURE 4 The M68HC11 Address Modes 8/14/ ECE265.
MICRO-CONTROLLER MOTOROLA HCS12 Addressing Modes Mechatronics Department Faculty of Engineering Ain Shams Univeristy.
© 2010 Kettering University, All rights reserved..
The M68HC11 Basic Instruction Set Basic Arithmetic Instructions
Lab 1 – Assembly Language and Interfacing Start date: Week 3 Due date: Week 4 1.
Module 10 Adapted By and Prepared James Tan © 2001.
Physics 413 Chapter 1: Introduction to the HCS 12 Microcontroller.
ME4447/6405 The George W. Woodruff School of Mechanical Engineering ME4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 7.
Physics 413 Chapter 4 A Fork in the Road LDAB # $ 13 here :ADDA # $ 24 DEC B BNE here WAI BNE is the new instruction. Branch if not equal to zero.
Computer Operations A computer is a programmable electronic device that can store, retrieve, and process data Data and instructions to manipulate the data.
ME4447/6405 The George W. Woodruff School of Mechanical Engineering ME4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics.
ECE 265 Midterm Review 12/1/ ECE265. Administrivia  The grade for quiz 3 was not entered into to Carmen before I handed them back.  I realize.
ECE 265 – LECTURE 5 The M68HC11 Basic Instruction Set 12/8/ ECE265.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle.
©These slides may be freely used, distributed, and incorporated into other works. 1 Addressing Modes For speed… we want fixed-size instructions, and they.
Addressing Modes MTT CPU08 Core Motorola CPU08 ADDRESSING MODES.
1 ECE 372 – Microcontroller Design Assembly Programming HCS12 Assembly Programming Addressing Modes Stack Operations Subroutines.
EE 345 Class Notes EE345 Midterm Review Dr. Jane Dong.
1 Introduction to Microcontroller Microcontroller Fundamentals & Programming.
Ch.2 Intro. To Assembly Language Programming
Dale & Lewis Chapter 5 Computing components
Ch.2 Intro. To Assembly Language Programming From Introduction to Embedded Systems: Interfacing to the Freescale 9s12 by Valvano, published by CENGAGE.
1 Microcontroller Fundamentals & Programming Addressing Modes.
Richard P. Paul, SPARC Architecture, Assembly Language Programming, and C Chapter 8 – Machine Instructions These are lecture notes to accompany the book.
Microcontroller Fundamentals & Programming Arithmetic Instructions.
ECE 447: Lecture 11 Introduction to Programming in Assembly Language.
Embedded Systems Lecture 5 January 25 th, 2016.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
EE345 Chapter 2 Lecture 3 April 4. Quiz every Wednesday 1 quiz = 1% extra credit five quizzes before midterm  5% for midterm. five quizzes before final.
EE345 Chapter 2 Lecture 3 April Instruction and addressing modes 1.Extended Addressing 2.Direct Addressing 3.Inherent Addressing 4.Immediate Addressing.
Addressing Modes of 8085 μP PRESENTED BY:- KRISHNA BALLABH GUPTA
1 Contents: 3.1 Instruction format and Addressing Modes 3.2 Instruction Introduction Chapter 3 Instruction system.
EET 2261 Unit 3 Assembly Language; Load, Store, & Move Instructions
ELEC 418 Advanced Digital Systems Dr. Ron Hayne
Addressing Modes in Microprocessors
HC11 Programming.
ECE 3430 – Intro to Microcomputer Systems
ECE 3430 – Intro to Microcomputer Systems
ECE 3430 – Intro to Microcomputer Systems
8051 Addressing Modes The way, using which the data source or destination addresses are specified in the instruction mnemonic for moving the data, is.
ME4447/6405 Microprocessor Control of Manufacturing Systems and
Computer Programming Machine and Assembly.
Computer Organization and ASSEMBLY LANGUAGE
Stack Relative Deferred (sf) Indexed (x) Stack Indexed (sx)
8085 MICROPROCESSOR 8085 CPU Registers and Status Flags S Z AC P C A B
ECEG-3202 Computer Architecture and Organization
Stack Relative Deferred (sf) Indexed (x) Stack Indexed (sx)
ECEG-3202 Computer Architecture and Organization
CPU has 6 special locations called registers
Chapter 4: Computer Architecture
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Copyright © 2013 Elsevier Inc. All rights reserved.
Presentation transcript:

Physics 413 Chapter 2

6800 Architecture A B X SP PC CCR

Straight-line Programming In Paris they simply stared when I spoke to them in French ; I never did succeed in making those idiots understand their own language Mark Twain , The Innocents Abroad, 1869

My First Program CLRA Clears accumulator A ( A = 0 ) INC A This instruction does this: A + 1 A WAI Stop (Wait)

Op-codes Assembly Language Memory Location Op-codes CLRA 0000 4F INCA 0001 4C WAI 0002 3E

My Second Program LDAA # $ 12 ADDA # $ 15 WAI

Object Code . . . Program # 2 Assembly Language Memory Location Op-codes LDAA # $ 12 0000 86 0001 12 ADDA # $ 15 0002 8B 0003 15 WAI 0004 3E

Addressing Modes Inherent (implied) : Simplest with no operand. One-byte op-code. Examples: INCA and CLRA Immediate : Operand specified is immediate (no memory access). Examples: LDAA # $ 12 and ADDA # $ 15

Immediate and Direct Modes Immediate LDAA # $ 12 Load 12 op-code 86 12 Direct LDAA $ 12 Load from memory 0012 op-code 96 12

My Third Program Assembly Language Memory Location Op-codes LDAA # $ 04 STAA $ 15 LDAA # $ 08 ? ? ADDA $ 15 WAI

My Third Program Assembly Language Memory Location Op-codes LDAA # $ 04 0000 86 04 STAA $ 15 0002 97 15 LDAA # $ 08 0004 86 08 ADDA $ 15 0006 9B 15 WAI 0008 3E

Extended Addressing Mode The extended addressing mode becomes indispensable when memory locations beyond the zero page must be addressed. Here, as always, an example is worth a thousand words: LDAA $$ 3C5E Load A from memory 3C5E Op-codes B6 3C 5E

Three Trick Questions What is the outcome of B6 00 2A ? What is the outcome of LDAA # $ 3C5E ? What is the outcome of STAB $$ 3C44 ?

Trick Questions . . . Answered! What is the outcome of B6 00 2A ? Legal but not very smart. What is the outcome of LDAA # $ 3C5E ? Not Legal What is the outcome of STAB $$ 3C44 ? O.K. and op-code is F7 3C 44