This is simple implementation of printf function that accepts arguments via stack. Here are supported format specifiers:
%%
– Percent symbol%d
– Signed decimal 32-bit integer%o
– Unsigned octal 32-bit integer%u
– Unsigned decimal 32-bit integer%x
– Unsigned hexadecimal integer%c
– Character%s
– Null-terminated string%p
– Pointer
I have also implemented invoke
macro that allows to call function easily is provided as well.