[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: detecting ProDOS vs. Dos3.3
Dennis Jenkins <dennis@usb.com> writes ...
> Hello,
> I am writing some code that needs to know which OS it is running
> under. I'd prefer a "rock solid" way of doing this.
> Currently, I just examine the jump table target address
> on the $3d0 JMP. If it is "BE00"
> I assume prodos and if it is (I forgot) then
> I assume Dos 3.3, anything else is an error.
> Is this a good method? What about all of the Dos 3.3
> hacks out there...
>
....
It's a pretty good check. 4C 00 BE seems to be a good indicator for
ProDOS. Meanwhile, DOS 3.3 and popular variants like Prontodos, EsDOS,
and DavidDOS all have 4C BF 9D at $03D0.
There is a chance that your application could be launched under DOS
3.3 which has been moved to 'Language Card' RAM. The DOS-->LC mover in
our collection places 4C AE BF in $03D0.
Rubywand
Sent via Deja.com
http://www.deja.com/