Keil Logo Arm Logo

Assembler User Guide

Use of macros

Use of macros

A macro definition is a block of code enclosed between MACRO and MEND directives. It defines a name that can be used instead of repeating the whole block of code. The main uses for a macro are:

  • to make it easier to follow the logic of the source code by replacing a block of code with a single meaningful name

  • to avoid repeating a block of code several times.

Copyright © 2007-2008, 2011-2012 ARM. All rights reserved.ARM DUI 0379D
Non-ConfidentialID062912

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.