Other Proper AMD64 ASM Boilerplate?

What boilerplate should a well formed, well behaved AMD64 assembly program contain? In some code I posted in Thread assembly-simple-hello-world.53274 I nuked the stack pointer with:
Code:
mov rsp, rdi
The goal was to pop argc and argv[n] from the stack. Somehow nuking the stack pointer seems like the wrong approach. I also seem to recall reading something about initializing a register with something frame related. The hello world examples seem to skip things like this.
 
Back
Top