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
Post a Comment