I wanted to get input using scanf, my idea was to loop scanf until it returns negative number (error). For some reason scanf stores first input in designated variable and returns negative number, it shouldn't do it right? Here is part of my code
.global main
main:
movl $var,