Generate asm for arithmetic expressions