You are the manager of a team of ARM programmers

Slides:



Advertisements
Similar presentations
Progam.-(6)* Write a program to Display series of Leaner, Even and odd using by LOOP command and Direct Offset address. Design by : sir Masood.
Advertisements

Slides created by: Professor Ian G. Harris Efficient C Code  Your C program is not exactly what is executed  Machine code is specific to each ucontroller.
ARM Assembly Programming Computer Organization and Assembly Languages Yung-Yu Chuang with slides by Peng-Sheng Chen.
Cases 2007 Florida State University Chris Zimmer, Steve Hines, Prasad Kulkarni Gary Tyson, David Whalley Facilitating Compiler Optimizations Through the.
Branches Two branch instructions:
Embedded System Design Center ARM7TDMI Microprocessor Data Processing Instructions Sai Kumar Devulapalli.
Control Structures in ARM Implementation of Decisions Similar to accumulator instructions One instruction sets the flags, followed by another instruction.
Embedded System Design Center Sai Kumar Devulapalli ARM7TDMI Microprocessor Load and store instruction.
COMP3221 lec13-decision-I.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 13: Making Decisions in C/Assembly Language - I
COMP3221 lec14-decision-II.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 14: Making Decisions in C/Assembly Language – II.
ARM Instructions I Prof. Taeweon Suh Computer Science Education Korea University.
Embedded System Design Center Sai Kumar Devulapalli ARM7TDMI Microprocessor Thumb Instruction Set.
FUNCTION – Microprocessor Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
Making Decision – Microprocessor
BITWISE OPERATIONS – Microprocessor Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
Topic 7: Control Flow Instructions CSE 30: Computer Organization and Systems Programming Winter 2011 Prof. Ryan Kastner Dept. of Computer Science and Engineering.
5. Assembly Language. Basics of AL Program data Pseudo-ops Array Program structures Data, stack, code segments.
Natawut NupairojAssembly Language1 Control Structure.
Memory/Storage Architecture Lab 컴퓨터의 개념과 실습 Assembly Example.
Lecture 2: Advanced Instructions, Control, and Branching EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer.
EKIVOLOS Self Contained, Accurate Precomputation Prefetching Islam Atta Xin Tong Andreas Moshovos Viji Srinivasan Ioana Baldini.
AT91 C-startup. 2 For reasons of modularity and portability most application code for an embedded application is written in C The application entry point.
ARM-7 Assembly: Example Programs 1 CSE 2312 Computer Organization and Assembly Language Programming Vassilis Athitsos University of Texas at Arlington.
Lecture 6: Branching CS 2011 Fall 2014, Dr. Rozier.
Lecture 8: Loading and Storing to Memory CS 2011 Fall 2014, Dr. Rozier.
Adding Sounds Games Programming in Scratch. Games Programming in Scratch L6 Adding Sounds Learning Objectives Learn how to add sound to a Scratch game.
F28HS Hardware-Software Interface Lecture 11: ARM Assembly Language 5.
SPARC Programming Model 24 “window” registers 8 global registers Control registers –Multiply step –PSR (status flags, etc.) –Trap Base register –Window.
Arrays In high-level languages, we have several technigues available for constucting data stuctures: −One-dimensional arrays −Multi-dimensional arrays.
1 Machine-Level Programming V: Control: loops Comp 21000: Introduction to Computer Organization & Systems March 2016 Systems book chapter 3* * Modified.
MIPS Coding. Exercise – the bubble sort 7/9/2016week04-3.ppt2.
מבוסס על שקפים מאת יאן ציטרין
GCSE COMPUTER SCIENCE Computers 1.5 Assembly Language.
Chapter 15: Higher Level Constructs
ECE 3430 – Intro to Microcomputer Systems
ARM Registers Register – internal CPU hardware device that stores binary data; can be accessed much more rapidly than a location in RAM ARM has.
While Loop While Loop i := 0; x := 2; WHILE i < 100
Assembly Language Assembly Language
The University of Adelaide, School of Computer Science
MIPS instructions.
Processor Instructions set. Learning Objectives
Chapter 4 Addressing modes
Pointers and Arrays in C and Assembly Language
8051 Addressing Modes The way, using which the data source or destination addresses are specified in the instruction mnemonic for moving the data, is.
Team 1: 32 responses Team 2: 55 responses Team 3: 29 responses
Assembly Language for Intel-Based Computers, 5th Edition
Pick up the handout on your way in!!
ARM Assembly Programming
Lesson Objectives Aims Key Words Compiler, interpreter, assembler
(Array and Addressing Modes)
[Your company] Business Plan [Street Address City, State & Zip Code
How NOT to design an ISA x86.
Figure 4- 1: Flowchart for Example 4-3
Multiplication by small constants (pp. 139 – 140)
(Array and Addressing Modes)
MIPS Functions.
MIPS Coding.
Have your say ADD YOUR SURVEY WEB ADDRESS HERE
Optimizing ARM Assembly
March 2006 Saeid Nooshabadi
Branching instructions
Overheads for Computers as Components 2nd ed.
Review.
March, 2006 Saeid Nooshabadi
Immediate data Immediate operands : ADD r3, r3, #1 valid ADD r3, #1,#2 invalid ADD #3, r1,r2 invalid ADD r3, r2, #&FF ( to represent hexadecimal immediate.
[Your company] Business Plan [Street Address City, State & Zip Code

MIPS Functions.
An Introduction to the ARM CORTEX M0+ Instructions
(Array and Addressing Modes)
Presentation transcript:

You are the manager of a team of ARM programmers You are the manager of a team of ARM programmers. You have received for following code from your team. You need to address the problems. What will you say to these programmers?

Problem 1 @ r0 = 5, r1 = 10 and for r0 = 15, r1 = 10. cmp r0, r1 blt next next1: mov r1, r0 b done ble next2 next2: cmp r0, r

Problem 2 @ r0 = 5, r1 = 10 and for r0 = 15, r1 = 10. loop: cmp r0, r1 blt target add r0, r0, r1 b loop target:

Problem 3 @ r0 = 5 Explain the following and give the results: 1. add r1, r0 2. lsl r0, #3 lsl r0, #2 3. lsl r1, r0, #3