aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruser <user@clank>2026-07-18 22:45:32 +0200
committeruser <user@clank>2026-07-18 22:45:32 +0200
commitfeed40c878b1505abce583a09b751b50cdd087cb (patch)
tree8da35b5f853ad4d5ab2a1c81a7cdec6327d4bf62
parentterm+libc: batched write rendering - one tile render per write(), 2.3x lines (diff)
downloadgbos-feed40c878b1505abce583a09b751b50cdd087cb.tar.gz
gbos-feed40c878b1505abce583a09b751b50cdd087cb.tar.xz
gbos-feed40c878b1505abce583a09b751b50cdd087cb.zip
demo: boot the SL0PBOY-forked BIOS in the README gifHEADmaster
gbdemo resolves a bare --bios to bios/sl0pboy_bios.bin when present (else stock gbc_bios.bin). Generate the fork with the emulator's tools/mk_sl0pboy_bios.py. The gif now opens on the SL0PBOY boot animation - logo drop, colorize, chime - before gbos comes up.
Diffstat (limited to '')
-rw-r--r--demo/gbos-demo.gifbin320907 -> 321953 bytes
-rw-r--r--demo/readme.gbd2
-rwxr-xr-xtools/gbdemo8
3 files changed, 6 insertions, 4 deletions
diff --git a/demo/gbos-demo.gif b/demo/gbos-demo.gif
index 869065b..35d22b3 100644
--- a/demo/gbos-demo.gif
+++ b/demo/gbos-demo.gif
Binary files differ
diff --git a/demo/readme.gbd b/demo/readme.gbd
index 21a9667..ecaa5e3 100644
--- a/demo/readme.gbd
+++ b/demo/readme.gbd
@@ -7,7 +7,7 @@
# Every waitfor syncs on REAL screen text (the terminal's WRAM shadow), so
# boot, DHCP and IRC-server timing can vary without breaking the choreography.
-# --bios: boot through the real CGB boot ROM (logo drop + chime + splash)
+# --bios: boot through our forked CGB boot ROM (SL0PBOY logo drop + chime)
spawn --chrome --bios
record /tmp/gbos-demo.gbv 2
diff --git a/tools/gbdemo b/tools/gbdemo
index 956c9f3..a45c935 100755
--- a/tools/gbdemo
+++ b/tools/gbdemo
@@ -130,12 +130,14 @@ def hub_type(payload: bytes):
def v_spawn(args):
nohub = "--nohub" in args # offline: no link (script smoke-tests)
args = [a for a in args if a != "--nohub"]
- # bare --bios: resolve the emulator's default boot ROM to an absolute path
- # (the tmux pane's cwd is wherever the user happens to be)
+ # bare --bios: resolve to an absolute path (the tmux pane's cwd is wherever
+ # the user happens to be). Prefer our forked SL0PBOY boot ROM if present.
if "--bios" in args:
i = args.index("--bios")
if i + 1 >= len(args) or args[i + 1].startswith("-"):
- args.insert(i + 1, os.path.join(GBC, "bios/gbc_bios.bin"))
+ fork = os.path.join(GBC, "bios/sl0pboy_bios.bin")
+ stock = os.path.join(GBC, "bios/gbc_bios.bin")
+ args.insert(i + 1, fork if os.path.exists(fork) else stock)
if not nohub and not os.path.exists(HUB):
die("no hub at %s - start it first: sudo tools/gbhub --daemon" % HUB)
rom = "/tmp/gbdemo_%d.gb" % os.getpid() # private copy: no .sav clashes