Presentation is loading. Please wait.

Presentation is loading. Please wait.

Blackfin Syntax Moves and Adds

Similar presentations


Presentation on theme: "Blackfin Syntax Moves and Adds"— Presentation transcript:

1 Blackfin Syntax Moves and Adds
What we already know and have to remember to apply What we need to learn

2 Assembly code “stub” Each function written in assembly code has the same general look 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 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

3 Example 1 -- stub code 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

4 Store/Write code 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

5 Load/read 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

6 Move Register 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

7 Conditional move register
8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

8 Half register moves Zero extended Sign extended 8/9/2019
Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

9 What does zero extended and sign extended mean?
1 1 1 1 0 In all bits 1 1 1 1 0 In all bits “sign bit” In all bits 1 1 1 1 1 In all bits 1 1 1 1 0 In all bits 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

10 32 bit adds 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

11 16 bit adds VIDEO two 16-bit Adds At same time 8/9/2019
Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

12 Some assign statement Load immediate
8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

13 Some assign statement Load immediate
8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

14 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

15 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada

16 Safe way of doing immediate loads
8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada


Download ppt "Blackfin Syntax Moves and Adds"

Similar presentations


Ads by Google