# Write Arm Assembler functions

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/)
- [Keil MDK versions](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/intro/)
- [Setting up a Project in Keil Studio (VS Code)](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/setup_mdk6/)
- [Setting up a Project in Keil MDK (μVision)](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/setup_mdk5/)
- [Writing assembly functions](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/coding/)
- [Next Steps](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Introductory |
| Reading time: | 1 hr |
| Last updated: | 08 Jul 2026 |

|  |  |
| --- | --- |
| Author: | Ronan Synnott , Arm<br>[LinkedIn](https://linkedin.com/in/ronansynnott) |
| Arm IP: | [Cortex-M](https://support.arm.com/?tab=compute-ip&Product%20Type=Microcontrollers) |
| Tags: | [Performance and Architecture](https://learn.arm.com/tag/performance-and-architecture/) [Baremetal](https://learn.arm.com/tag/baremetal) [Keil MDK](https://learn.arm.com/tag/keil-mdk) |

### Who is this for?
This is an introductory topic for software developers who are interested in programming microcontrollers with C/Assembly.

### What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- 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.

### Prerequisites
Before starting, you'll need the following prerequisites:
- Some familiarity with C/Assembly.
- An installation of Keil MDK.

### Summary
You’ll build a small mixed C and assembly program for Cortex-M using Keil MDK. First, you’ll set up a project in either Keil Studio (VS Code) or μVision for the `ARMCM4` target, add CMSIS core and startup components where required, and configure the Cortex-M4 Fixed Virtual Platform as the debug target. Then, you’ll write two assembly subroutines for string copy and capitalization, called from a C `main()` function, while following the Arm Procedure Call Standard. By stepping through the program in the debugger, you’ll observe register use and memory updates and verify that the destination buffer reflects the copied and capitalized string.

### Write Arm Assembler functions

- [Introduction](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/)
- [Keil MDK versions](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/intro/)
- [Setting up a Project in Keil Studio (VS Code)](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/setup_mdk6/)
- [Setting up a Project in Keil MDK (μVision)](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/setup_mdk5/)
- [Writing assembly functions](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/coding/)
- [Next Steps](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/asm/_next-steps/)
