Assembly: printf not printing new line

后端 未结 2 1303
长发绾君心
长发绾君心 2020-12-04 04:18

I have the following code that prints the number of parameters passed to ./main. Notice the fmt in the rodata section. I\'ve included

2条回答
  •  感情败类
    2020-12-04 04:30

    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.

提交回复
热议问题