Home > OS >  JL after scanf jumps even though the conversion succeeded? Do functions set FLAGS according to their
JL after scanf jumps even though the conversion succeeded? Do functions set FLAGS according to their

Time:12-10

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,            
  • Related