Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Tuesday, 30-Jul-2024 02:37:34 JST翠星石 @BrodieOnLinux >Functions are just named goto statements lol
They aren't.
While you can use `goto` to jump to a function address, things explode when you hit `ret`.
Typically you would want to push non-saved registers onto the stack, before `call`ing the function, so the working variables aren't overwritten and the return address is pushed to the stack, so the function actually returns on hitting `ret`.