diff options
| author | gbc dev <gbc@localhost> | 2026-07-15 23:44:28 +0200 |
|---|---|---|
| committer | gbc dev <gbc@localhost> | 2026-07-15 23:44:28 +0200 |
| commit | 24a015ff047d4b7bb955ba4bc61d5793d7492878 (patch) | |
| tree | ebaf323a5c530400c81f9ce13db828e9bf6b35e1 /src/gb.h | |
| parent | control: video frame capture + deterministic input-movie replay (diff) | |
| download | sl0pboy-24a015ff047d4b7bb955ba4bc61d5793d7492878.tar.gz sl0pboy-24a015ff047d4b7bb955ba4bc61d5793d7492878.tar.xz sl0pboy-24a015ff047d4b7bb955ba4bc61d5793d7492878.zip | |
serial: headless mode tying serial port to stdio for OS debugging
- --headless: no rendering/TUI; serial TX -> stdout, RX <- stdin (nonblocking)
- generalize serial: serial_out_fd/serial_in_fd on the GB; internal-clock
transfer now shifts in a real RX byte (from stdin) instead of always 0xFF
- paced to native speed by default, --uncapped for turbo; pipes/scripts cleanly
- README: document headless serial console
Diffstat (limited to 'src/gb.h')
| -rw-r--r-- | src/gb.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -114,6 +114,8 @@ struct GB { u64 cycles; // total T-cycles elapsed bool serial_log; // print serial output to stderr (blargg tests) + int serial_out_fd; // if >=0, transmitted serial bytes written here (stdout) + int serial_in_fd; // if >=0, received serial bytes read here (stdin), else 0xFF }; void gb_init(GB *gb); |
