[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Ssystem() & Setexec()
> On Fri, May 21, 1999 at 01:14:21PM +0300, Thomas GOIRAND wrote:
> > So, why did "ssystem()" was created if such function was in the
> > system from TOS 1.0 ???
>
> Because with Setexc(), you can only access memory that is word-aligned.
long word aligned.
> (btw, the design for reading them is broken, as there's no way for you
> to decide whether the return value -36 for a long is the actual contents
> or just the error value "Access denied"), but also has opcodes to get
Last time I've checked that, the Ssystem() modes of getting memory
loaction values are not able to return -36 as an access denied. They just
return fetched values. If the system decided to hide a value from reading,
the function returns a zero and the caller must satisfy himself with that.
Opcodes for getting variables do not return error codes, in other words.
Only _writing_ thsese memory locations may be restricted explicitly, so
-36 may be returned only by modes designed for setting memory locations,
not for reading.
--
Konrad M.Kokoszkiewicz
|mail: draco@atari.org | Atari Falcon030/TT030/65XE |
|http://www.obta.uw.edu.pl/~draco/
|http://draco.atari.org
** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)
*************************************************************
** U pospolstwa normalne jest, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.