In this video I regale you with taking my first steps
writing x86 ASM.
Sorry for the slow typing and audio clicking today!
This is GNU GAS Assembly, I think most people write
Intel/NASM syntax so that's why it might look weird but
gcc happily eats GNU syntax without any additional config.
CORRECTION 1: When I say I need to add the 16 bytes back to the
stack pointer %rsp, I don't. %rbp is just moved into it before returning
to restore the end of the last stack frame.
I hope that made sense!
CORRECTION 2: n^0 is 1, not 0. See if you can spot the fix :)
The goal this time was more to inspire than to explain...
Really the whole point is that you need to write it to get it :)
Here is the book I recommended:
https://link.springer.com/book/10.1007/978-1-4842-7437-8
Thanks for watching, keep learning!