dreamcast/sh7091/serial.hpp
Zack Buhman 10d17d3c98 example: add gdrom_iso9660
This combines my iso9660 parsing code, with all of the prior gdrom packet
interface / command code.

The example, on real Dreamcast hardware, displays the first 2048 bytes [1] of every
file in the root directory on the serial console.

[1] or the size of the file, whichever is smaller
2024-02-27 00:28:39 +08:00

20 lines
304 B
C++

namespace serial {
void init(uint8_t bit_rate);
void character(const char c);
void string(const char * s);
void string(const uint8_t * s, uint32_t len);
void hexlify(const uint8_t n);
template <typename T>
void integer(const T n, const char end);
template <typename T>
void integer(const T n);
}