Presentation is loading. Please wait.

Presentation is loading. Please wait.

Review of Blackfin Syntax Moves and Adds 1) What we already know and have to remember to apply 2) What we need to learn.

Similar presentations


Presentation on theme: "Review of Blackfin Syntax Moves and Adds 1) What we already know and have to remember to apply 2) What we need to learn."— Presentation transcript:

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

2 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 2 Assembly code “stub” Each function written in assembly code has the same general look Each function written in assembly code has the same general look 1.The necessary #include files and Section name 2.Declaration of the function as “global” combined with labels for start and end of function 3.Setting size of link operation and using LINK instruction to save the return address 4.Unlink used with JUMP(P0) instruction to cause the function to return “to calling program” 5.R0 used for return parameter 6.Required code with Documentation of code

3 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 3 Example 1 -- stub code

4 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 4 Store/Write code

5 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 5 Load /read

6 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 6 Move Register

7 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 7 Conditional move register

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

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

10 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 10 32 bit adds

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

12 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 12 Some assign statement Load immediate

13 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 13 Some assign statement Load immediate

14 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 14

15 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 15

16 6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 16 Safe way of doing immediate loads


Download ppt "Review of Blackfin Syntax Moves and Adds 1) What we already know and have to remember to apply 2) What we need to learn."

Similar presentations


Ads by Google