We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e04e456 commit df3a4eaCopy full SHA for df3a4ea
src/a8libdos.c
@@ -16,6 +16,25 @@
16
#include "a8defdos.h"
17
18
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
38
// ------------------------------------------------------------
39
// Func...: void SDGDate(unsigned char *bD)
40
// Desc...: Gets date and time from SpartaDOS
0 commit comments