mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2025-08-05 14:24:11 +00:00
add Date Time bit formats
This commit is contained in:
@@ -79,6 +79,12 @@
|
||||
,"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
|
||||
// NULL terminates the string
|
||||
// ------------------------------------------------------------
|
||||
@@ -140,6 +146,12 @@
|
||||
|
||||
// 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
|
||||
// ------------------------------------------------------------
|
||||
void prodos_TimeToString( uint16_t time, char *text_ )
|
||||
|
Reference in New Issue
Block a user