MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / ProDOS_PackTime

Function ProDOS_PackTime

source/ProDOS_FileSystem.h:166–173  ·  view source on GitHub ↗

| 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

Source from the content-addressed store, hash-verified

164 // +---------------------------------------------------------------+
165 // <----0----> <------Hours------> <--0--> <-------Minutes-------> Time
166 uint16_t ProDOS_PackTime (int hours, int minutes)
167 {
168 uint16_t time = 0
169 | ((hours & 0x1F) << 8)
170 | ((minutes & 0x3F) << 0)
171 ;
172 return time;
173 }
174
175// --- ProDOS Utility Byte Functions ---
176

Callers 4

Util_ProDOS_CopyBASICFunction · 0.85
Util_ProDOS_CopyBitsyByeFunction · 0.85
Util_ProDOS_CopyDOSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected