Jne for evaluation in eax

For the class, I need to conditionally jump to the value $ 0x55683af8: However, this code is not valid. How can I go to the next value?

mov $0x55683af8,%eax cmpl $0xdeadbeef,0x0(%ebp) jne *%eax 
+4
source share
1 answer

You cannot use conditional branching in combination with case, instead you can do ...

  mov $0x55683af8,%eax cmpl $0xdeadbeef,0x0(%ebp) je Skip jmp *%eax //or call Skip 
+6
source

Source: https://habr.com/ru/post/1379734/


All Articles