Nios/invert

From ASMBits

Write a function that returns the bitwise inversion of its parameter.

int invert (int n);

Expected solution length: Around 2 lines.

Sample Input

1

Sample Output

0xfffffffe

Nios II has an instruction for inversion, but it's not obvious: nor.

Write your solution here

Upload a source file...