- RBX = Base pointer to arrays, structures or even arrays of structures.
RCX = Counter
RSI = Source index
RDI = Destination index
Code: Select all
Proc: push rdi
push rsi
push rbx
push rbp
mov rbp, rsp ; or maybe even ENTER ?,?
..... Body of Procedure ....
leave
pop rbx
pop rsi
pop rdi
ret
As my system is not intended to be compatible with POSIX, SYSTEM V or anything else, it has been plagued with a few tribulations where I've had to redraft, at times right to the beginning. What I'm looking for here, has anyone else designed such an OS and what sort of ABI did you implement. Although I appreciate what M$ had to do for backward compatibility maybe, using shadow space does introduce a lot of bloat.