Add further clarity to example package

This commit is contained in:
Justine Tunney 2020-06-18 16:14:47 -07:00
parent d2b20422c8
commit a2c2d14100
6 changed files with 40 additions and 14 deletions

View file

@ -1,6 +1,16 @@
#include "libc/macros.h"
MyAsm: .leafprologue
/ Example assembly function.
/
/ @note param agnostic
/ @note we love stack frames
/ easiest way to do backtraces
/ somehow they usually make code faster
/ it's convention for keeping stack 16-byte aligned
/ cpus still devote much to pushing & popping b/c i386
MyAsm: push %rbp
mov %rsp,%rbp
call MyPrint2
.leafepilogue
pop %rbp
ret
.endfn MyAsm,globl