Take longer as in doing this
Originally Posted by anduril462
.string " "
where i have to count the number of spaces
.comm .... seems kind of quick.
Yeah, it does seem a bit clearer than before.
Quick question (haha)
I have a string declared that has 20bytes, but I want the last byte to have the null character when the user inputs a string.
so what i did was
I just wonder if that is correct. I haven't tested it yet, because I am having problems with the text editor.
movl $19, %edx
movl $0, %ebx
movl $3, %eax
addl $19, %ecx
movl $0, %ecx #add a null character