Nios/findintr

From ASMBits

Write a function that will return whether a given interrupt line is enabled. Return 1 if enabled, 0 if not. The IRQ line (first parameter) is guaranteed to be between 0 and 31. An interrupt is enabled if both global interrupts are enabled, and the specific IRQ line is also enabled.

Expected solution length: Around 10 lines.

Sample Input

[none]

Sample Output

0

Write your solution here

Upload a source file...