What you've learned

You should now know how to:

  • Write a mixed C program and assembly language subroutines for the microcontroller. 
  • Call the subroutines written in assembly in a C function. 
  • Use Arm register calling conventions when writing subroutines in assembly language. 
  • Step through the code to understand operation.

Knowledge Check

When a function calls a subroutine, where is the return address stored?

What keyword can be used to incorporate inline assembly code?

Which registers should be preserved by a subroutine?


Back
Next