I have the following code that prints the number of parameters passed to ./main. Notice the fmt in the rodata section. I\'ve included
./main
fmt
rodata
The assembler is not C. The C compiler understands \n as an escape code for ASCII 10. The assembler does not and treats it as two characters. Add the 10 as you describe.