[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] Correct way to detect MiNT kernal?
Quite a while back I asked Frank how to detect the MiNT kernal
whilst on IRC. When I say detect I mean positively detect it
even if some other OS fakes the cookie entry. At the time
I think Frank suggested making a call to Sconfig(opcode 290)
and if it fails (-32) then the MiNT kernal is not present.
Is this proper way? I've been over all the docs in the
lastest kernal archive and didn't find mention of this call.
Unless I missed it can someone point me in the correct doc?
Reason I ask this:
I was talking with someone else today on IRC about the same thing
and they raised the question that if Sconfig() is a rather old
call wouldn't another OS also have this call? They thought
maybe Ssystem() would be the call to use instead?
Thanks
Hope eveyone has a good New Year!
__________________________________________________________________
Atari Computer User: Lonny Pursell E-Mail: atari@bright.net
WWW: http://www.bright.net/~atari/ IRC: lp @ #Atari @ IRCnet