summaryrefslogtreecommitdiff
path: root/docs/reference/asm_thumb2_directives.rst
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-02-27 22:03:52 -0500
committerGitHub <noreply@github.com>2018-02-27 22:03:52 -0500
commit568c04e6afa8016062f685b2198c0209f62827f4 (patch)
treed07b76119f715add462983b335797adf64b61249 /docs/reference/asm_thumb2_directives.rst
parent6a2379fd0bfe10017d8abc5c36ef1d470c0d9b27 (diff)
parentea633117d01d94e8d56ed94344e4b3e46b4eef03 (diff)
Merge pull request #650 from tannewt/merge_2x3.0.0-alpha.2
Merge in commits from 2.x branch.
Diffstat (limited to 'docs/reference/asm_thumb2_directives.rst')
-rw-r--r--docs/reference/asm_thumb2_directives.rst36
1 files changed, 0 insertions, 36 deletions
diff --git a/docs/reference/asm_thumb2_directives.rst b/docs/reference/asm_thumb2_directives.rst
deleted file mode 100644
index 95acd7781..000000000
--- a/docs/reference/asm_thumb2_directives.rst
+++ /dev/null
@@ -1,36 +0,0 @@
-Assembler Directives
-====================
-
-Labels
-------
-
-* label(INNER1)
-
-This defines a label for use in a branch instruction. Thus elsewhere in the code a ``b(INNER1)``
-will cause execution to continue with the instruction after the label directive.
-
-Defining inline data
---------------------
-
-The following assembler directives facilitate embedding data in an assembler code block.
-
-* data(size, d0, d1 .. dn)
-
-The data directive creates n array of data values in memory. The first argument specifies the
-size in bytes of the subsequent arguments. Hence the first statement below will cause the
-assembler to put three bytes (with values 2, 3 and 4) into consecutive memory locations
-while the second will cause it to emit two four byte words.
-
-::
-
- data(1, 2, 3, 4)
- data(4, 2, 100000)
-
-Data values longer than a single byte are stored in memory in little-endian format.
-
-* align(nBytes)
-
-Align the following instruction to an nBytes value. ARM Thumb-2 instructions must be two
-byte aligned, hence it's advisable to issue ``align(2)`` after ``data`` directives and
-prior to any subsequent code. This ensures that the code will run irrespective of the
-size of the data array.