Atari DOS version detection

 

This simple routine lets you check which version of Atari DOS is active:

10 IF PEEK(1995)=170 THEN ?“DOS 2.0s“
20 IF PEEK(1995)=100 THEN ?“DOS 2.5″
30 IF PEEK(1995)=29 THEN ?“DOS 3.0″