StrangeCode
MoriGM
•
1y ago
•
100%
Weird Linux amd64 abi trickery
https://raw.githubusercontent.com/MoriGM/RandomCStuff/master/forbenius_problemm/version4.cThis 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.
Comments 0