add function to emit assembly