I am learning intelx64 assembly (AT&T)
I saw a question to translate from C code to assembly:
if (a>=0)
b=0;
else
b=-1;
where I was given:
movl a,%eax
___________
movl %edx, b
While I can solve this in 2 lines or more I can't think of something to solve it in 1 line, any help or hint?