Added some of Nebuleon's optimizations from master
Put assembly code in itcm