strangecode
StrangeCode MoriGM 1y ago 100%

Weird Linux amd64 abi trickery

https://raw.githubusercontent.com/MoriGM/RandomCStuff/master/forbenius_problemm/version4.c

This Code should calculate the "Frobenius number". When the arguments are missing its exiting.

This is done by using the Linux abi in which the return register of asm_exit_ret is used to set the rax register and the input 'i' to set the rdi register.

1
0
Comments 0