Skip to main content
Ctrl+K

Fadhil Journal documentation

  • ARM arch
  • Backend
  • Bare Metal
  • Cryptography
  • Database
    • Dockerfile
    • Gallery
    • Math
    • Netfilter
    • Other
    • PHP
    • Rust
    • Server
    • Sysprog
  • ARM arch
  • Backend
  • Bare Metal
  • Cryptography
  • Database
  • Dockerfile
  • Gallery
  • Math
  • Netfilter
  • Other
  • PHP
  • Rust
  • Server
  • Sysprog

Section Navigation

  • ARM AArch32 ABI Convention
  • Branch exchange (BX)
  • ARM M0+ registers
  • ARM MRS instruction
  • Difference Between Thumb-1 (T16) and Normal ARM
  • ASM gnu-as direction collection
  • Calling a main function
  • Thumb, Thumb-2, ARM, AArch64 introduction
  • ARM arch
  • ASM gnu-as direction collection

ASM gnu-as direction collection#

.equ#

this is equalivalent of #define FOO 6 in c example:

.equ LED_PIN,      25
.equ GPIO_DIR_IN,  0
.equ GPIO_DIR_OUT, 1
.equ PIN_HIGH,     1
.equ PIN_LOW,      0

https://sourceware.org/binutils/docs-2.24/as/Equ.html#Equ

.syntax#

https://sourceware.org/binutils/docs/as.html#Instruction-Set-Syntax https://www.sourceware.org/binutils/docs/as/ARM-Directives.html#index-_002esyntax-directive_002c-ARM

this is either unified or divided

previous

Difference Between Thumb-1 (T16) and Normal ARM

next

Calling a main function

On this page
  • .equ
  • .syntax
Edit on GitHub

This Page

  • Show Source

© Copyright 2025, Fadhil Riyanto.

Created using Sphinx 7.3.7.

About me
Contact

Built with the PyData Sphinx Theme 0.16.1.