For use in OS development.
Designed to be assembled with NASM, porting it over to other assemblers should be easy.
You are free to use, modify, distribute and sell this code.
A small message referring to this gist would be nice, though not required.
This implementation uses a custom calling convention.
It is meant to be used within assembly code and does not adhere to the cdecl calling convention.
- Protected mode (makes use of 32-bit registers)
- A small stack (at least 512 bits are recommended)
Is this implementation fast?
It is reasonably fast.
Will it work in long mode?
Probably, untested though.
Why are the file names prefixed with characters?
To keep them in order.