Helpers for 8 bit, 16-bit, 24-bit values ------------------------------------------------------------------------
| 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 ) |
no outgoing calls
no test coverage detected