input - Read a string and parse an integer in Assembly -


i relatively new assembly. read string command line, store in variable , convert integer. ideas? tutorial using used assembly code didn't want use in of assembly applications doing. running linux ubuntu x86 processor.

"read" syscall. can set registers (linux) or stack (freebsd) , use syscall raising interrupt or use nasmx's macros (in cross-platform way!). stdin, stdout, , stderr file descriptors 0, 1 , 2 respectively. or, use scanf in same way (which of course provided in standard c library , call read you). it's easier unless want write own integer parser no reason!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -