Assembly - js versus ja instruction
问题 So the goal is for me to write out the C code that corresponds to this assembly : 0: 85 f6 test %esi,%esi 2: 78 13 js 17 <part3+0x17> 4: 83 fe 07 cmp $0x7,%esi 7: 77 14 ja 1d <part3+0x1d> 9: 8d 0c f5 00 00 00 00 lea 0x0(,%rsi,8),%ecx 10: 48 d3 ff sar %cl,%rdi 13: 48 89 f8 mov %rdi,%rax 16: c3 retq 17: b8 00 00 00 00 mov $0x0,%eax 1c: c3 retq 1d: b8 00 00 00 00 mov $0x0,%eax 22: c3 retq I am a little confused because the first loop testing the %esi register ends before the second loop ends. Is