Arm/declequ

From ASMBits

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

Write your solution here

Upload a source file...