| 15 | }; |
| 16 | |
| 17 | static std::string fromPetscii(const Bytes& bytes) |
| 18 | { |
| 19 | std::stringstream ss; |
| 20 | |
| 21 | for (uint8_t b : bytes) |
| 22 | { |
| 23 | if ((b >= 32) && (b <= 126)) |
| 24 | ss << (char)tolower(b); |
| 25 | else |
| 26 | ss << fmt::format("%{:2x}", b); |
| 27 | } |
| 28 | |
| 29 | return ss.str(); |
| 30 | } |
| 31 | |
| 32 | static std::string toMode(uint8_t cbm_type) |
| 33 | { |
no outgoing calls
no test coverage detected