2013-09-23

I'm fairly new to assembly, and trying to read a value from standard input (calling the scanf function from C) and printing it back to standard output (with printf).

The expected output would be the same number as the input, however the output is always

note: compiled on a 64-bit suse linux enterprise desktop, using gcc -m32 -o inout inout.s

What's going wrong here?

Show more