Improved codegen, added def-asm-constant, & other stuff