Fix use of IP and SP in assembler
Fix timed IRQs
Threading example