ARM assembly

GNU ARM assembly

ARM Machine Directives

Tools

GNU Arm Embedded Toolchain
The GNU Embedded Toolchain for Arm is a ready-to-use, open-source suite of tools for C, C++ and assembly programming targeting 32-bit Arm Cortex-A, Arm Cortex-M and Cortex-R family of processors. It includes the GNU Compiler (GCC) and is available free of charge directly from Arm for embedded software development on Windows, Linux and Mac OS X operating systems.

ARM 32-bit Sandbox

CPUlator Simulator Documentation
CPUlator is a simulator and debugger of a computer system (CPU, memory, and I/O devices) that runs inside a web browser. Simulation allows running and debugging programs without needing to use a hardware board. When you load a program onto the simulator, the program will behave (almost) identically to the same program running on real hardware. The simulated systems are based on the computer systems from the Altera University Program (Nios II and ARMv7) or SPIM (MIPS).

ASMBits — Assembly Language Practice
ASMBits is a collection of small assembly language programming exercises. There are currently exercises for ARMv7 and Nios II architectures.
Most of the problems require you to write a function in assembly language. ASMBits runs your code with a few test input cases, and the results are compared to those produced by our reference solution.

ARMSim#

https://webhome.cs.uvic.ca/~nigelh/ARMSim-V2.1/

Using the C Standard Library with ARMSim# (PDF)
Some components of the Mentor Graphics Sourcery CodeBench are needed if access to the standard C library is required or if C source code is to be compiled. The Sourcery CodeBench version of the gcc compiler is not included with the ARMSim# distribution due to its size.
If there are no errors reported in the Console window, then the ARM program is ready to run.
Execution begins in the start.o file, but the code in that file does little more than invoke the program’s main function. Open File/Load Multiple and select the assembler file you have developed and the following four object files / libraries:

  • start.o
  • libc.a
  • libcs3hosted.a –> Mentor Graphics Sourcery CodeBench syscalls
  • libgcc.a

Books

Modern Assembly Language Programming with the ARM Processor – Larry D. Pyeatt

ARM Assembly Language Programming – Peter J. Cockerell (HTML) (PDF)

Raspberry Pi Assembly Language Programming: ARM Processor Coding – Stephen Smith