MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / encode_data_gcr

Function encode_data_gcr

arch/c64/encoder.cc:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16static bool lastBit;
17
18static int encode_data_gcr(uint8_t data)
19{
20 switch (data)
21 {
22#define GCR_ENTRY(gcr, data) \
23 case data: \
24 return gcr;
25#include "data_gcr.h"
26#undef GCR_ENTRY
27 }
28 return -1;
29}
30
31static void write_bits(
32 std::vector<bool>& bits, unsigned& cursor, const std::vector<bool>& src)

Callers 1

encode_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected