Decisions in assembler code

Slides:



Advertisements
Similar presentations
Chapter 5 Tutorial 5a. Editing and Assembling From Valvano.
Advertisements

ELN5622 Embedded Systems Class 3 Spring, 2003 Kent Orthner
ELEC 330 Digital Systems Engineering Dr. Ron Hayne
EET 2261 Unit 5 Tables; Decision Trees & Logic Instructions
This document guides you through using the common features of the InFocus™ Mondopad™ touchscreen display located in this room. Getting Started Power Display.
1 Excel and Regression. 2 3 On the next screen you can see I typed in the data for the schooling / income study. I even put in labels in the first row.
Assembler Programming Chapter 6. EEL-4746 Best Practices.
68HC11 Polling and Interrupts
1 ECE 372 – Microcontroller Design Basic Assembly Programming for(j=0; j
1-1 Ramesh Yerraballi EE 319K Introduction to Microcontrollers Lecture 1: Introduction, Embedded Sys, Product Life- Cycle, 9S12 Programming.
ECE 265 – LECTURE 17 Simulator Project 8/7/ ECE265.
© 2010 Kettering University, All rights reserved..
Lab 1 – Assembly Language and Interfacing Start date: Week 3 Due date: Week 4 1.
Basic Microcontroller System
Objectives Define IP Address To be able to assign an IP address with its Subnet Mask and Default Gateway to a PC that operates using Windows 7 or Fedora.
P.1ECE 331, Prof. A. Mason Professor Andrew Mason Michigan State University Spring 2013 ECE 331: PC Lab 1: Using HC12 ASM Simulators.
Teaching with OPNET Software
Microprocessors A microprocessor is essentially a computer on a single chip. It is also an example of a complex finite state machine or clocked sequential.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Objectives Implement pointers using indexed addressing modes Use pointers to access arrays, strings, structures, tables, and matrices Present finite-state.
6-1 EE 319K Introduction to Microcontrollers Lecture 6: Indexed Addressing Mode and Variants, Functional Debugging, Arrays, Strings.
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.
1 Segments and Pseudo Operations Program Development.
How to:-. “MATERIALS” tab is the default selection when you login to this product ADD Materials into a Manifest Store / Folder ** From MATERIALS Tab **
Assembly Language ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
Click on or type the address into the browserwww.hnfs.com Go to
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
Pin Connect Plug-in  Simulator allows you to simulate and monitor external interrupt signals  The plug-in enables you to specify the interval at which.
ECE 265 – LECTURE 11 Editing and the Assembler (updated 11/11/10) 12/15/ ECE265.
1 ECE 372 – Microcontroller Design Assembly Programming HCS12 Assembly Programming Addressing Modes Stack Operations Subroutines.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
ECE Lecture 21 Typical Assembly Language Program Bugs.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
Ch.2 Intro. To Assembly Language Programming From Introduction to Embedded Systems: Interfacing to the Freescale 9s12 by Valvano, published by CENGAGE.
“MATERIALS” tab is the default selection when you login to this product ADD Materials Into a Manifest Store / Folder ** From MATERIALS Tab **
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
1 ECE 372 – Microcontroller Design Basic Assembly Programming for(j=0; j
Microsoft Robotics Studio Simulation Environment
Making a 24hr Timer.
ELE22MIC Lecture 18 Writing 68HC11 software 68HC11 Main Timer System
The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the.
ECE 3430 – Intro to Microcomputer Systems
How to add a network printer in Windows 7
ECE 3430 – Intro to Microcomputer Systems
Learning Outcome #1 Architecture and Programming Model
While Loop While Loop i := 0; x := 2; WHILE i < 100
Macros and Structured Programming
ELE22MIC Lecture 18 Writing 68HC11 software 68HC11 Main Timer System
General Purpose I/O.
ECE 3430 – Intro to Microcomputer Systems
Arduino Basics Connect Arduino to USB port
fischertechnik® RoboPro Software for Gateway To Technology® RoboPro
“Assembly Table Lookup”
ECET 330 Innovative Education--snaptutorial.com
Tips on changing password on Lenovo laptop on Windows 10
SAM Self Assessment Software
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
ME4447/6405 Microprocessor Control of Manufacturing Systems and
Branching and Loops.
1. Open Visual Studio 2008.
Write a program to calculate x**y, given x and y.
Founded in Silicon Valley in 1984
Interrupt-Driven State Machine
How to Open PowerPoint Maryam Fatima.
Indexing Through Memory
Accum A: Index X: CCR Bit Z: $0100 $0101 $0102 $0103 $0104 $0105
ECE511: Digital System & Microprocessor
The Simulator project.
Presentation transcript:

Decisions in assembler code

3 < A < 8 Flowchart and assembler LDAA VALA CMPA #3 BLE OUT BGE OUT Do action OUT continuation

A<2 or A>=6 Flowchart and assembler LDAA vala CMPA #2 BLT act BGE out act action for True out continuation

2<=A<=5 Flowchart and assembler LDAA vala CMPA #2 BLT out BGT out action when true out continuation

Simulation Assignment 1 Enter the following code into THRSIM ORG $50 INNR RMB 1 OTTR RMB 1 ORG $E000 LDAB #$FF STAB $1007 configure port C for output OL LDAA delayval try 1, try 10, etc STAA ottr TOP DECR INNR BNE TOP DEC OTTR EORB #$FF STAB $1003 BRA OL LDA $FF END BRA END

Sim Asg 1 (cont) Before running your code configure an LED on pin PC 0. To do this go to the connect window, choose LED. When the popup comes up scroll in the left side and select PC0. Then hit connect. Then say OK. After entering the code run your code, using different values for DELAYVAL Note the difference in the time it takes from when you click on RUN until accumulator A becomes FF. Try the program with delay val of 1 and delay val of $F0. Change the value until you achieve approximately 1 second.

Being able to reset simulator If you want to be able to reset the simulator to rerun you code enter the following. ORG $FFFE FCB $E0 FCB $00 What does this do? It resets the PC when a reset occurs to value $E000