CSE 2312 - Brief and Incomplete ARM-7 Assembly Instruction Reference


This page contains some simplified descriptions of ARM-7 instructions. More complicated descriptions, that include more cases and combinations of arguments can be found on the online documentation page.


Making Instructions Conditional

Unless otherwise indicated, you can make every instruction conditional by changing its name to include at the end "lt", "le", "gt", "ge", "eq", or "ne". Then, the instruction gets executed based on the the value of conditional flags. The conditional flags only get updated by specific instructions, the most common of which is the cmp instruction. For example:


Using Integer Constants as Arguments

Several instructions, including add, and, eor, orr, and sub, and can take as third argument an integer constant. According to the ARM-7 documentation, such a constant can be:
  1. An 8-bit integer, or
  2. A 32-bit integer that is equal to an 8-bit integer that has been shifted to the left by an EVEN number of bits (0, 2, 4, ..., 30 bits).
These are some examples of integers matching the second category, given in hexadecimal:


List of Selected Instructions


Back to the resources page.                 Back to the CSE 2312 home page.