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

  • Organic and Biochemistry organic chemistry: the study of

    Organic and Biochemistry organic chemistry: the study of

    Carbon is unique among. the elements because: it can have up to four bonds per C atom -- single, double, or triple bonds ----it can form REALLY long chains of C atoms
  • SAQ Marking Meeting - 7th Oct 2011

    SAQ Marking Meeting - 7th Oct 2011

    Arial Calibri Times New Roman Office Theme Slide 1 Slide 2 Slide 3 Reading Slide 5 Useful websites Guidelines - NICE SIGN CEM BTS Paediatrics Other Other Exam Prep Resources Slide 15 Part B - Two hours Slide 17 Part...
  • Medieval Theatre - gk033.k12.sd.us

    Medieval Theatre - gk033.k12.sd.us

    Medieval Theatre. The next style of church drama was the pantomime. Then dialogue was added to the church dramas - at first spoken in Latin - then spoken in native language. Medieval Theatre- Mansions. New style: Mansions or Stations.
  • Module 1.20: Superficial and regional anatomy

    Module 1.20: Superficial and regional anatomy

    Module 1.20: Superficial and regional anatomy Last modified by: Stephen Henry ...
  • Intro to Ecosystems

    Intro to Ecosystems

    WHAT IS A SPECIES? A group of organisms that can potentially mate to produce fertile offspring. Fertile? Means that they canhave babies of their own.
  • Hip Jack - bcsc.k12.in.us

    Hip Jack - bcsc.k12.in.us

    Use the common rafter pattern. Hip Jack Upper End Hip jacks are shortened and have side cuts in the same fashion as hip rafters. Hip Jack Layout for Hip Draw plumb line. Hip Jack Layout for Hip Rafter is shortened...
  • Ontology Alignment Patrick Lambrix Linkpings universitet Ontology Alignment

    Ontology Alignment Patrick Lambrix Linkpings universitet Ontology Alignment

    Arial MS Pゴシック Wingdings Arial Black Times New Roman 宋体 StarSymbol Garamond Tahoma Pixel 1_Pixel Microsoft Excel-diagram Microsoft Equation 3.0 Microsoft Office Excel Chart Ontology Alignment Ontology Alignment Ontologies in biomedical research Ontologies with overlapping information Ontologies with overlapping information...
  • An Introduction to Interdomain Routing and the Border Gateway ...

    An Introduction to Interdomain Routing and the Border Gateway ...

    A Challenge: Modeling the Dynamics of the Inter-domain Routing in the Internet Mathematics for Networks Workshop QMUL March 23 2005 Timothy G. Griffin Matthew Roughan