add Date Time bit formats

This commit is contained in:
michaelangel007
2025-02-08 17:32:50 -08:00
parent 25d9d24324
commit 8e82d82f81

View File

@@ -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_ )