Skip to content

Commit df3a4ea

Browse files
v1.47
v1.47 Signed-off-by: Ripjetski <[email protected]>
1 parent e04e456 commit df3a4ea

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/a8libdos.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@
1616
#include "a8defdos.h"
1717

1818

19+
// ------------------------------------------------------------
20+
// Func...: byte IsSD(void)
21+
// Desc...: Determines if SpartaDOS is present
22+
// Returns: TRUE or FALSE
23+
// ------------------------------------------------------------
24+
byte IsSD(void)
25+
{
26+
byte bR = FALSE;
27+
byte bP = DOSID;
28+
29+
// Check DOSID for one of 4 bytes indicating SpartaDOS
30+
if ((bP == 0) || (bP == 15) || (bP == 68) || (bP ==89)) {
31+
bR = TRUE;
32+
}
33+
34+
return (bR);
35+
}
36+
37+
1938
// ------------------------------------------------------------
2039
// Func...: void SDGDate(unsigned char *bD)
2140
// Desc...: Gets date and time from SpartaDOS

0 commit comments

Comments
 (0)