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

  • www.gormgroup.com Life Cycle of Federal Acquisition Unparalleled domain

    www.gormgroup.com Life Cycle of Federal Acquisition Unparalleled domain

    Cost Plus Fixed Fee (CPFF) A cost-reimbursement contract provides for payment to the contractor of a negotiated fee that is fixed at the inception of the contract. Cost Plus Incentive Fee (CPIF) A cost-reimbursement contract provides for the initially negotiated...
  • Aspire@Rgu - Scurl

    [email protected] - Scurl

    Academic staff were informed about [email protected] in several ways: Presentations at appropriate events, committees and meetings. General presentations set up with all staff invited to attend. A dedicated web page was set up. Use of the blog, email, twitter etc....
  • BIOLOGY Unit 4 Notes: Meiosis - Ms. Rozema's Classes

    BIOLOGY Unit 4 Notes: Meiosis - Ms. Rozema's Classes

    BIOLOGY Unit 4 Notes: Meiosis (1) Reproduction Types of Reproduction: Asexual Sexual Sexual Reproduction: Two parent organisms exchange genetic information to produce genetically different offspring. Asexual Reproduction: A single celled organism which makes an identical copy of itself (becoming the...
  • Less Than > Equal

    Less Than > Equal

    PHILIPPIANS 2:3-4 (NIV) So in everything, do to others what you would have them do to you, for this sums up the Law and the Prophets. MATTHEW 7:12 (NIV) In your relationships with one another, have the same mindset as...
  • How to Survey?

    How to Survey?

    Lessons Learned by Illinois and Texas: Family Outcomes Early Intervention Statewide Outcomes Survey
  • SYNATCTIC PARSING Heng Ji jih@rpi.edu January 17, 2019

    SYNATCTIC PARSING Heng Ji [email protected] January 17, 2019

    For example, in English, determiners and the head nouns in NPs have to agree in their number. This flight. Those flights *This flights *Those flight /40. The Point. CFGs appear to be just about what we need to account for...
  • Fødselsdepression lægelig behandling

    Fødselsdepression lægelig behandling

    Har tidligere haft depressive episoder, men ikke så slemt som efter fødslen Efter fødsel udvikler moderen moderat til svær depression, orker kun at sidde og amme, græder det meste af tiden Moderen sygemeldes. Vir tager barselsorlov og koncentrerer sig 100%...
  • Chapter

    Chapter

    Chapter 2. General Biology I. BSC 2010. credit: modification of work by Christian Guthier. The Chemical Foundation of Life. ... The structure of an atom of the element "carbon" is different from the structure of an atom of the element...