<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sl0pboy.git/src, branch master</title>
<subtitle>sl0pboy - a Game Boy Color emulator (companion to the gbos OS)</subtitle>
<id>https://git.sl0p.foo/sl0pboy.git/atom/src?h=master</id>
<link rel='self' href='https://git.sl0p.foo/sl0pboy.git/atom/src?h=master'/>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/'/>
<updated>2026-07-18T18:41:19Z</updated>
<entry>
<title>render: --shrink N - downscale the half-block live display (1-4)</title>
<updated>2026-07-18T18:41:19Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-18T18:41:19Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=fa1579cc9f209dbeb14ab277dc9c4ac741ace57c'/>
<id>urn:sha1:fa1579cc9f209dbeb14ab277dc9c4ac741ace57c</id>
<content type='text'>
Decimates the LCD N x N before the half-block encode so the monitor pane
takes 160/N cols x 72/N rows. Display-only: capture, recording and sixel
still read the full-res framebuffer.

Decimation is max-luma pick, not box-average: terminal fonts are 1px
bright strokes on dark background, and averaging dims them into grey
mush (the 'blurry font' regression). Keeping the brightest source pixel
of each block preserves stroke brightness and hue.
</content>
</entry>
<entry>
<title>main: allow --sock (control/debug socket) in headless mode</title>
<updated>2026-07-17T18:22:13Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-17T18:22:13Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=e8c1777a1761ebf55029589912198c83fb06aaec'/>
<id>urn:sha1:e8c1777a1761ebf55029589912198c83fb06aaec</id>
<content type='text'>
The control socket was only opened on the windowed path, so a --headless
GB couldn't be inspected. A scriptable, invisible GB is exactly the one
you most want to peek into - reading kernel WRAM over the debug socket is
how the TCP field-offset corruption got pinned down. Open it in the
headless loop too and poll it each frame; close it on exit.
</content>
</entry>
<entry>
<title>cpu: log the $ED poweroff opcode with pc/registers</title>
<updated>2026-07-17T17:47:02Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-17T17:47:02Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=ef07ad11bb0a20f137682e901a0a6beacfc08968'/>
<id>urn:sha1:ef07ad11bb0a20f137682e901a0a6beacfc08968</id>
<content type='text'>
The clean-exit opcode used to print nothing, so any guest crash that
walked into a stray $ED byte was indistinguishable from a silent
socket death (one of the kill vectors in the link-drop investigation).
Now it identifies itself on stderr with pc/af/bc/de/hl/sp.
</content>
</entry>
<entry>
<title>gb: auto-reconnect a dead --serial-sock link instead of going silent</title>
<updated>2026-07-17T17:46:58Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-17T17:46:58Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=130215c21ce4aa300abc9a276e2ffb35c8f43803'/>
<id>urn:sha1:130215c21ce4aa300abc9a276e2ffb35c8f43803</id>
<content type='text'>
Root-cause work for the 'idle link-socket drop' (see gbos
docs/link-drop-investigation.md): when the hub restarts or the bridge
dies, the link fd went dead forever - and before SIGPIPE was ignored,
the next console-echo write() would kill the whole emulator silently.

Now, in --serial-sock mode, EOF on read or EPIPE/ECONNRESET/ENOTCONN/
EBADF on either direction marks the link dead, closes the fd, and
retries connect() every 500ms from the serial poll path (the guest
polls constantly, so no extra plumbing). RX stays pending while down
(serial_no_eof semantics), so the guest just sees a quiet link that
comes back. Logs 'link socket lost / reconnected' either way.

Verified: SIGKILL the hub, restart it - every GB reconnects within ~1s
and keeps its lease.
</content>
</entry>
<entry>
<title>main: silence stderr while the live sixel display is up</title>
<updated>2026-07-17T17:45:03Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-17T17:45:03Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=a3dd7fa747d631831e920aa55ed03e7954ca6517'/>
<id>urn:sha1:a3dd7fa747d631831e920aa55ed03e7954ca6517</id>
<content type='text'>
Runtime chatter (link reconnect notices, input debug, cart warnings) was
landing mid-sixel-stream and corrupting the picture. Redirect fd 2 to
/dev/null for the duration of the display loop; restored on exit so the
final stats line still prints. Startup errors before the display begins
are unaffected.
</content>
</entry>
<entry>
<title>main: --serial-sock PATH - link port over a unix socket (net + live display)</title>
<updated>2026-07-17T11:22:00Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-17T11:22:00Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=346634bbd7376c0120c51e8ec5ba3d7d400fc567'/>
<id>urn:sha1:346634bbd7376c0120c51e8ec5ba3d7d400fc567</id>
<content type='text'>
The serial fds are serviced by cpu_step in every mode, so wiring them to a
connected unix socket lets networking run alongside a live display (--sixel /
terminal) - unlike --headless, which needs stdio for the serial. The emulator
connects to PATH (retrying ~1s so a launcher can listen first) and uses it
non-blocking with no EOF-exit; it overrides the headless stdio serial.

Pairs with gbos tools/netboot, which listens on PATH, brings up a TUN+NAT, and
bridges the socket &lt;-&gt; TUN. In windowed mode the OSK is the console and the
link port is pure network - cleanly separated. Verified: host pings the GB 3/3
over the socket link.
</content>
</entry>
<entry>
<title>rebrand: gbc -&gt; sl0pboy (binary, README, tooling)</title>
<updated>2026-07-16T23:08:48Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-16T23:08:48Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=c714fc8927c454b5cf4735429b4cc9cde7aa5760'/>
<id>urn:sha1:c714fc8927c454b5cf4735429b4cc9cde7aa5760</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: options-first CLI with --help, and wire up display/boot flags</title>
<updated>2026-07-16T22:27:46Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-16T22:27:46Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=6c906a750675910323710b293f939a5f26dadd58'/>
<id>urn:sha1:6c906a750675910323710b293f939a5f26dadd58</id>
<content type='text'>
- Rewrite argument handling: the ROM is now the final argument and options
  precede it (parsed in argv[1..argc-2] so optional-value flags never swallow
  the ROM). Add grouped --help/-h, unknown-option errors, and clear 'missing
  value'/'no ROM' diagnostics.
- Add --chrome, --palette/--green, and --bios flags; set the display/capture
  options before the --shot and recording paths so screenshots and recordings
  honor them. Make --shot dump the composited capture frame.
- gbctl: pass the ROM last when spawning the emulator.
- gitignore the (copyrighted) bios/ directory; document all new flags.
</content>
</entry>
<entry>
<title>record: capture the displayed frame (chrome + palette)</title>
<updated>2026-07-16T22:27:28Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-16T22:27:28Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=506a6611fae8b56c895fe17ed0b94e2f194407da'/>
<id>urn:sha1:506a6611fae8b56c895fe17ed0b94e2f194407da</id>
<content type='text'>
The video recorder now writes render_capture_frame() instead of the raw
LCD framebuffer, so captures match what's shown: chrome frames record at
their larger dimensions (written into the .gbv header) and the LCD palette
is baked in. Button presses also show up lit in recordings.
</content>
</entry>
<entry>
<title>render: Game Boy chrome, LCD palette recolor, and frame capture</title>
<updated>2026-07-16T22:27:18Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-16T22:27:18Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=6c0eaf8469a3f4876cb067e11824a030bf37bcac'/>
<id>urn:sha1:6c0eaf8469a3f4876cb067e11824a030bf37bcac</id>
<content type='text'>
- --chrome: draw a DMG-style 'sl0pboy' shell around the LCD in sixel mode,
  with a bitmap-font silk-screen (logo, labels), speaker grille, power LED,
  and buttons that light up while held.
- LCD palette recolor (render_set_palette): remap the LCD to a 4-shade
  palette by luminance for the classic monochrome look ('dmg'/'green' pea
  green, 'pocket'/'gray'); applies to every render path.
- Refactor the sixel encoder into generic build_palette_buf/encode_sixel_buf
  operating on any RGB888 buffer, shared by the bare LCD and the chrome canvas.
- render_capture_size/frame: produce the exact displayed frame (recolor +
  chrome) as an RGB buffer, for screenshots and video recording.
</content>
</entry>
</feed>
