[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Stack restore done by OS



Am 10.10.2010, 11:40 Uhr, schrieb Miro Kropacek <miro.kropacek@gmail.com>:

Hi,

just curious, to your knowledge, what is the reason behind forcing
programmer to adjust stack manually after each OS call? I mean favorite:

move.w #param,-(sp)
trap #xy
addq.l #2,sp

why last line couldn't be done in OS?

I guess because the OS does not know how many params you actually have pushed.


--
Helmut Karlowski