You might need to put each asm command in quotes and do a newline. I don't recall ever doing that, but it's in this how-to that I found: http://www.ibiblio.org/gferg/ldp/GCC...-HOWTO.html#s4

Try just putting the whole thing in a quote rather than putting each line in them, that should eliminate the need for newlines.