13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>.CODE16, .CODE32, .THUMB, .<strong>ARM</strong>Syntax.CODE16.CODE32.THUMB.<strong>ARM</strong>DescriptionWith the .CODE16 directive you instruct the assembler to interpret subsequent instructions as 16-bitThumb instructions using the pre-UAL syntax until it encounters another mode directive or till it reachesthe end of the active section. This directive causes an implicit alignment of two bytes.The .THUMB directive is the same as the .CODE16 directive except that the UAL syntax is expected.With the .CODE32 directive you instruct the assembler to interpret subsequent instructions as 32-bit <strong>ARM</strong>instructions using the pre-UAL syntax until it encounters another mode directive or till it reaches the endof the active section. This directive causes an implicit alignment of four bytes. The assembler issues anerror message if .CODE32 is used in combination with option --cpu=<strong>ARM</strong>v7M.The .<strong>ARM</strong> directive is the same as the .CODE32 directive except that the UAL syntax is expected.These directives are useful when you have files that contain both <strong>ARM</strong> and Thumb instructions. Thedirective must appear be<strong>for</strong>e the instruction change and between a .SECTION/.ENDSEC. The defaultinstruction set at the start of a section depends on the use of assembler option --thumb.Example.section .text.code32;following instructions are <strong>ARM</strong> instructions;.endsecRelated In<strong>for</strong>mationAssembler option --thumb (Treat input as Thumb instructions)102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!