Blackfin Syntax Moves and Adds 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 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
Example 1 -- stub code 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
Store/Write code 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
Load/read 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
Move Register 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
Conditional move register 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
Half register moves Zero extended Sign extended 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
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
32 bit adds 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
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
Some assign statement Load immediate 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
Some assign statement Load immediate 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada
Safe way of doing immediate loads 8/9/2019 Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada