On Tue 29 Mar 2022 at 18:49, Alexander Burger <[email protected]> wrote: > As C does not allow access to the carry bit, you have to do ugly and > inefficient > tricks, by looking at the most significant bit of the result and trying to > detect an overflow. For example, in bigAdd() in pil32's src/big.c: > > carry = (unDig(src) & ~1) > num(setDig(dst, (unDig(src) & ~1) + > (unDig(dst) & ~1))); [...] > Concerning the stack, assembly code can handle the hardware stack pointer just > like any other register.
interesting Did you consider GCC inline assembly? What were the reasons you did not use it? -- UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
