mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2026-10-22 00:02:22 +00:00
add Date Time bit formats
This commit is contained in:
1 parent
25d9d24324
commit
8e82d82f81
1 file changed
+12
@@ -79,6 +79,12 @@
|
|||||||
,"bug" // 15 Should never happen
|
,"bug" // 15 Should never happen
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// | Byte 1 | Byte 0 | Bytes
|
||||||
|
// +-------------------------------+-------------------------------+
|
||||||
|
// | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bits
|
||||||
|
// +---------------------------------------------------------------+
|
||||||
|
// <-----------Year-----------> <----Month----> <-------Day-------> Date
|
||||||
|
|
||||||
// Converts date to 9 chars: DD-MON-YR format
|
// Converts date to 9 chars: DD-MON-YR format
|
||||||
// NULL terminates the string
|
// NULL terminates the string
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
@@ -140,6 +146,12 @@
|
|||||||
|
|
||||||
// Time ___________________________________________________________________
|
// Time ___________________________________________________________________
|
||||||
|
|
||||||
|
// | Byte 1 | Byte 0 | Bytes
|
||||||
|
// +---------------------------------------------------------------+
|
||||||
|
// | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bits
|
||||||
|
// +---------------------------------------------------------------+
|
||||||
|
// <----0----> <------Hours------> <--0--> <-------Minutes-------> Time
|
||||||
|
|
||||||
// Converts time to 6 chars: HH:MMm
|
// Converts time to 6 chars: HH:MMm
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
void prodos_TimeToString( uint16_t time, char *text_ )
|
void prodos_TimeToString( uint16_t time, char *text_ )
|
||||||
|
|||||||
Reference in new issue
Block a user