Arm/declequ
From ASMBits
arm/declstrwordPrevious
Nextarm/declequ2
The .equ directive is useful for creating named constants that can be used in your code, rather than directly using plain numbers.
Using .equ, declare a constant named LEDS with value 0xff200000 (This is the location of the LED I/O device). Then write a function named get_led that returns the value of LEDs in r0. (This is just 32-bit-move-constant (ldr reg, =NUM) to practice using the constant.)
Sample Input
[No input]
Sample Output
r0=0xff200000
arm/declstrwordPrevious
Nextarm/declequ2