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

Function ProDOS_Get16

source/ProDOS_FileSystem.h:179–186  ·  view source on GitHub ↗

Helpers for 8 bit, 16-bit, 24-bit values ------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

177 // Helpers for 8 bit, 16-bit, 24-bit values
178 // ------------------------------------------------------------------------
179 inline uint16_t ProDOS_Get16 ( uint8_t *pDiskBytes, int offset )
180 {
181 uint16_t n = 0
182 | (((uint16_t)pDiskBytes[ offset + 0 ]) << 0)
183 | (((uint16_t)pDiskBytes[ offset + 1 ]) << 8)
184 ;
185 return n;
186 }
187
188 // ------------------------------------------------------------------------
189 inline uint32_t ProDOS_Get24 ( uint8_t *pDiskBytes, int offset )

Callers 4

ProDOS_GetVolumeHeaderFunction · 0.85
ProDOS_GetFileHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected