Nios/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 r2. (This is just a movia to practice using the constant.)

Sample Input

[No input]

Sample Output

r2=0xff200000

Write your solution here

Upload a source file...