Tutorial on Blackfin Move and Add istructions

Tutorial on Blackfin Move and Add istructions

Blackfin Syntax Moves and Adds 1) 2) What we already know and have to remember to apply What we need to learn Assembly code stub Each function written in assembly code has the same general look

1. 2. 3. 4. 5. 6. 01/26/20 The necessary #include files and Section name Declaration of the function as global combined with labels for start and end of function

Setting size of link operation and using LINK instruction to save the return address Unlink used with JUMP(P0) instruction to cause the function to return to calling program R0 used for return parameter Required code with Documentation of code Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 2 Example 1 -- stub code

01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 3 Store/Write code (Lab. 1 and 2) 01/26/20

Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 4 Load /read 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada

5 Move Register 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 6

Conditional move register 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 7 Half register moves

Zero extended Sign extended 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 8

What does zero extended and sign extended mean? 11001110 11011111 0 In all bits 01001110 11011111 0 In all bits sign bit In all bits

11001110 11011111 1 In all bits 01001110 11011111 0 In all bits 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 9

32 bit adds 2 REGISTER APPROACH ALWAYS WORKS 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada

10 16 bit adds VIDEO two 16-bit Adds At same time 01/26/20 Timer Control -- Lab.3,

Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 11 Some assign statement Load immediate 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada

12 Some assign statement Load immediate 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 13

01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 14 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada

15 Safe way of doing immediate loads 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 16

Will now give you some examples to tackle 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 17

Recently Viewed Presentations

  • I's not from me!!!

    I's not from me!!!

    Welcome! Please sign in I'll be happy to answer any questions about the course. Please feel free to contact me at any time individually with student questions.
  • Sample Exercise 8.1 Magnitudes of Lattice Energies Without

    Sample Exercise 8.1 Magnitudes of Lattice Energies Without

    For these two reasons, the middle structure is the preferred Lewis structure of the NCS- ion. Sample Exercise 8.9 Lewis Structures and Formal Charges The cyanate ion (NCO-), like the thiocyanate ion, has three possible Lewis structures.
  • Nixon and Foreign Policy - Mr. VB's History Site

    Nixon and Foreign Policy - Mr. VB's History Site

    When nixon visited, it really calmed down cold war fears with China. Plus, it made USSR worried that we were becoming close and they didn't like that. They could benefit from good relations with us, so they got a little...
  • Bản trình bày của PowerPoint - AGU Staff Zone

    Bản trình bày của PowerPoint - AGU Staff Zone

    * Trypsin * Chymotrypsin. 4. Ứng dụng của enzyme . ... Sử dụng enzym chymosin để chuyển casein trong sữa từ dạng keo sang khối đông với cấu trúc gel. 5.8 Cắt quện sữa: Tăng nhanh quá trình tách huyết...
  • CSCE 212 Computer Architecture - Computer Science & E

    CSCE 212 Computer Architecture - Computer Science & E

    Driver 74LS153 Dual 4 input MUX Hooking them Up Transition Table for Clocked SR flip-flop J-K Flip Flop Transition Table for JK Flip Flop The D Flip Flop The T Flip Flop Excitation Tables Excitation Tables: JK Excitation Tables: T...
  • Software Defined Radar Group 33  Ranges and Test

    Software Defined Radar Group 33 Ranges and Test

    OTH is continous wave which allows for higher average transmit power allowing detection of objects 1000 km away. 3-30 mhz allows for bouncing of signals off of the atmosphere. Large antenna arrays comprise this multistatic system to receive the reflections....
  • Energy Management in TinyOS 2 Learning Objectives  Understand

    Energy Management in TinyOS 2 Learning Objectives Understand

    Energy Management in TinyOS 2 Learning Objectives Understand the basic ideas of Integrated Concurrency and Energy Management (ICEM) Understand representive ICEM examples in TinyOS 2 Prerequisites Basic concepts of Operating Systems Basic concepts of Object-oriented design and analysis Motivation If...
  • Marketing Workshop - Australian Library and Information ...

    Marketing Workshop - Australian Library and Information ...

    marketing workshop. diane velasquez, university of south australia jennifer campbell-meier, victoria university of wellington. 30 july 2018