I recently saw this at the top of one of my assembly files and realised I had spent ages using it in the process of printing integers without actually realising where it came from originally (used in my basic assembly template) or what the 10, 0 on the end means:
section .data
intfmt: db "%d", 10, 0
Could anyone break this down and explain the different components, specifically of line 2?
I am now trying to read input using scanf and it seems this format isn't working correctly for this. Think it's about time I learned what the numbers meant!
Also, if you have any ideas about reading in input on a 64bit architecture using scanf, I haven't done it before and it's causing me some problems so any pointers to doing that would also be appreciated!