# Linux Kernel Module Cheat

#### 28.9.2. GNU GAS assembler immediates

Summary:

- x86 always dollar `$` everywhere.

- ARM: can use either `#`, `$` or nothing depending on v7 vs v8 and `.syntax unified`.

  Fuller explanation at: https://stackoverflow.com/questions/21652884/is-the-hash-required-for-immediate-values-in-arm-assembly/51987780#51987780

Examples:

- userland/arch/arm/immediates.S

- userland/arch/aarch64/immediates.S