This is an example for finding the odd numbers using RISC-V assembly.
It will start from a0 up to a1, storing each odd number into the memory
address in a4 onwards.
Requires ((a1 - a0) / 2) * 4 bytes of memory or something, should be fine for
reasonable values.
Tested on Ripes.