The Segan Voyager is the same SplitBit with a screen and a speaker instead of a terminal, and this is the rung that makes there be two of them at all. Everything that is actually the machine - the CPU, the controller, the devices, the run loop, the reporting - moves to machine.c, and each front end brings one file of its own. emulator.c is now sixty lines of argument handling and a three line loop. The machine runs in SLICES rather than to completion, because that is the cut a window needs: run a slice, present a frame, run another. A terminal runs slices until the machine stops. Both loops are three lines, which is why the cut is there rather than anywhere else. At this stage Voyager's window is empty. There is no video device yet and inventing a temporary way to draw would mean building something to throw away. PLAIN MAKE STILL WORKS WITH NO GRAPHICS LIBRARY. Raylib is probed by compiling and linking against it rather than by looking for a file, because a header with no library behind it passes a file check and then fails at link time. Where it is missing, make says so once and builds everything else - the machine, the assembler, the disk tool, the linter and the whole suite. A project about a small understandable CPU should not need OpenGL to run its tests. That nearly broke here: make strict globs Source/Emulator/*.c, so it would have tried to compile voyager.c and failed on precisely the machines the split exists to support, and this machine has Raylib so nothing would have caught it. Tests/voyager.sh runs the WHOLE MANIFEST through Voyager and holds it to the recorded results SplitBit is held to. Not that the two look alike: that one satisfies every recording the other does, byte for byte, exit status included. It reuses run.sh, which now takes the machine from SPLITBIT_EMULATOR, rather than keeping a second copy of the runner that would drift. Voyager not being built is not a failure - it says so and passes. Verified both ways. Made Voyager print one extra line, and 114 of 165 failed: exactly the tests that run the emulator, with the 51 assemble-only and xfail cases correctly untouched. Removed the binary, and the script skipped. Built with HAVE_RAYLIB=no, and everything else still built and checked clean. --headless is taken out of the arguments in voyager.c rather than in the shared parser, which should not learn about a window only one binary has. It exists so the suite can run this binary at all: a front end that could only be exercised by a person looking at it would be a front end nothing checks. loadFile takes a const char * now, which it always should have. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
# Anchored to the repository root, all of them. Without the leading slash a pattern
|
|
# matches at any depth, so "Assembler" also ignored the Source/Assembler DIRECTORY - and a
|
|
# new source file added there would have been silently untracked.
|
|
/Tests/build/
|
|
/Programs/build/
|
|
/Object/
|
|
/Assembler
|
|
/SplitBit
|
|
/SplitDisk
|
|
/SplitLint
|
|
/Voyager
|
|
/CLAUDE.md
|
|
/claudeResume.sh
|
|
/codexResume.sh
|
|
|
|
# Python leaves these beside the test scripts.
|
|
__pycache__/
|
|
|
|
# Assembled programs. Every one of these is built by 'make' in Programs/ from a source
|
|
# file that is tracked, so committing them only creates a second answer to the question of
|
|
# what a program does - and the second answer goes stale silently. Nine of the ten that
|
|
# used to be here disagreed with their own source, including the operating system.
|
|
#
|
|
# Not anchored, because a .bin may be built anywhere a .asm lives.
|
|
*.bin
|
|
*.sbx
|
|
*.img
|
|
|
|
# Kate leaves these beside a file it has open.
|
|
.*.kate-swp
|
|
Source/Emulator/rom.c
|
|
|
|
# Other people's repositories, kept here to be read rather than to be built. soundThing is
|
|
# where the synthesizer comes from and Hatchet-GPU is where the font and the scroll register
|
|
# idea come from, and neither belongs to this one: they carry their own .git directories,
|
|
# their own build outputs and their own compiled binaries. What this repository takes from
|
|
# them gets vendored deliberately, with a note saying where it came from.
|
|
/External/
|