aboutsummaryrefslogtreecommitdiffstats
path: root/src/cpu.c
diff options
context:
space:
mode:
authorgbc dev <gbc@localhost>2026-07-16 07:21:40 +0200
committergbc dev <gbc@localhost>2026-07-16 07:21:40 +0200
commit1f90c9415b2960a349adfc82805b27e5290033e7 (patch)
tree65a30526ed45179ad739c75c43b3723eebf1778a /src/cpu.c
parentserial: clean RX path for headless console (diff)
downloadsl0pboy-1f90c9415b2960a349adfc82805b27e5290033e7.tar.gz
sl0pboy-1f90c9415b2960a349adfc82805b27e5290033e7.tar.xz
sl0pboy-1f90c9415b2960a349adfc82805b27e5290033e7.zip
serial: deliver EOF (0x04) on stdin end for headless console
read()==0 completes the external-clock transfer with SB=0x04 (EOT), so a gbos program's readc() sees EOF instead of polling forever. Enables cat/wc-style tools and lets the shell exit on Ctrl-D / pipe end.
Diffstat (limited to 'src/cpu.c')
0 files changed, 0 insertions, 0 deletions