foxygit / xexkit Log in
commit 4d31cedd2fd75c5376ad1ce427a8a36376509041
Author:     mrfox <jens.se@icloud.com>
AuthorDate: Wed Nov 25 19:32:27 2026 +0100
Commit:     mrfox <jens.se@icloud.com>
CommitDate: Wed Nov 25 19:32:27 2026 +0100

    General-purpose wording, roadmap, changelog, how to improve xexkit

    The crash report, hello notification and fs test files no longer name
    FAKE-08. ROADMAP.md lists the gaps (threads, GPU rendering, networking,
    saves, SDL2 backend, ...), CHANGELOG.md starts at v0.1.0, and the README
    says how changes are checked and documented.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---
 CHANGELOG.md                       | 28 ++++++++++++++++++++++++
 README.md                          | 27 ++++++++++++++++++++---
 ROADMAP.md                         | 45 ++++++++++++++++++++++++++++++++++++++
 docs/wiki/Crashes-and-Debugging.md |  2 +-
 runtime/fault.c                    |  2 +-
 tests/fs/main.cpp                  |  4 ++--
 tests/hello/main.cpp               |  2 +-
 7 files changed, 102 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..4220220
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,28 @@
+# Changelog
+
+xexkit uses version tags (`v0.1.0`, ...). A port should pin a tag or a commit,
+for example as a git submodule, and move to a newer one when it chooses.
+Breaking changes to the API or to `mk/xexkit.mk` raise the minor version
+while xexkit is 0.x.
+
+## v0.1.0 (2026-11-25)
+
+The first version, taken out of the FAKE-08 Xbox 360 port. Everything below
+has been checked on an RGH console.
+
+- **Build:** `mk/xexkit.mk` for titles; GCC 16, newlib and libstdc++ from
+  `free60/libxenon`; `xex-link` from xenon-forge with a 1 MB main stack.
+- **Start-up:** static constructors, C++ exceptions, a 96 MB heap, exit to the
+  dashboard.
+- **Files:** `game:`, `hdd:`, `usb0:`-`usb2:`; stdio, POSIX and `dirent` on
+  `Nt*`. The FAT32 USB directory listing is fixed.
+- **Time:** the 49.875 MHz time base, `gettimeofday`, `clock`, sleeping.
+- **Video:** the title's own GPU ring and `VdSwap`; the LUT and the 0x60EC
+  commit; native-resolution front buffers with the scaler off; tiled helpers.
+- **The Guide:** XAM's surface is shown while it's open; the display is
+  described to XAM; frames under the Guide are paced.
+- **Audio:** an XAudio render-driver client at 48 kHz, 6 channels.
+- **Input:** four controllers.
+- **Crash reports:** `game:/crash.txt` from a vectored exception handler.
+- **Tests:** hello, fs, video, audio and fault; `examples/minimal`.
+- **Docs:** `docs/wiki/`.
diff --git a/README.md b/README.md
index d2be0f0..37b9681 100644
--- a/README.md
+++ b/README.md
@@ -14,9 +14,10 @@ xexkit is a small C/C++ runtime and build setup:
   heap, video with the Guide, audio, controllers and crash reports, all on the
   kernel's own API.

-It came out of porting [FAKE-08](https://github.com/jtothebell/fake-08), a
-PICO-8 emulator, to the console, and every behaviour it relies on was checked
-on real hardware. The [wiki](docs/wiki/Home.md) (in `docs/wiki/`) records what was learned and why the
+It is a general toolkit for any title: games, emulators, apps. It began as
+the Xbox 360 port of [FAKE-08](https://github.com/jtothebell/fake-08), a
+PICO-8 emulator, and every behaviour it relies on was checked on real
+hardware. The [wiki](docs/wiki/Home.md) (in `docs/wiki/`) records what was learned and why the
 code looks the way it does.

 ## What a title gets
@@ -98,6 +99,26 @@ tests/              hardware tests
 examples/minimal/   a title to start from
 ```

+## Improving xexkit
+
+xexkit is meant for any title, not only the port it came from, and to get
+better over time. [ROADMAP.md](ROADMAP.md) lists what's missing.
+[CHANGELOG.md](CHANGELOG.md) lists what each version brought; ports pin a
+version tag or a commit.
+
+When you change or add something:
+
+- **Check it on a console.** Xenia only shows that a title starts. Add or
+  extend a test in `tests/` that logs what happened to `game:/`, so the next
+  person can run the same check.
+- **Write down what you found** in `docs/wiki/`: what the console did, what
+  you compared it with (Xenia, libxenon, xsdk, a measurement) and why the code
+  does what it does. Facts nobody has checked go in as "unverified".
+- **Keep the API stable.** New functions are fine. A change that breaks
+  existing titles gets a note in the changelog and a new minor version.
+- **Keep it free of XDK material.** Use public sources and your own hardware
+  results only, and say in comments where a fact comes from.
+
 ## Credits and licences

 - **[xenon-forge](https://github.com/landaire/xenon-forge)** (MIT/Apache-2.0):
diff --git a/ROADMAP.md b/ROADMAP.md
new file mode 100644
index 0000000..11db2b9
--- /dev/null
+++ b/ROADMAP.md
@@ -0,0 +1,45 @@
+# Roadmap
+
+xexkit is meant to grow into a general toolkit for native Xbox 360 titles, not
+only the FAKE-08 port it came from. Below is what's missing or could be better,
+roughly in order of how often a port will need it. When you take something on,
+see "Improving xexkit" in the README.
+
+## Missing
+
+- **Threads.** `ExCreateThread` with XAPI start-up and placement on the six
+  hardware threads, plus mutexes, events and condition variables. This is
+  enough for `std::thread` and an SDL-style audio thread. xsdk has documented
+  the details.
+- **GPU rendering.** Today titles draw with the CPU into the front buffer.
+  Next would be an API for the ring, shaders, textures and resolves into the
+  front buffer, so that 3D and fast 2D work. Starting points: xenon-forge's
+  `xbox360-gpu` and xsdk's GPU layer.
+- **Networking.** Sockets through XAM's networking (`NetDll_*`).
+- **Saves and profiles.** XAM content packages and the signed-in profile,
+  for titles that should save like retail games.
+- **The on-screen keyboard and message boxes** (XAM UI).
+- **More POSIX:** `chdir`/`getcwd`, `rename`, `ftruncate`, `nanosleep`,
+  `clock_gettime` with a monotonic clock.
+- **An SDL2 backend** on top of xexkit's video, audio and input, so that SDL
+  programs port with little work.
+
+## Better
+
+- **Video:** let the title choose a smaller surface and have the scaler
+  enlarge it, using the nearest-neighbour filter bit, instead of always
+  drawing at the output size. Also handle 1080i and 480p, and pace the Guide
+  frames with the vblank interrupt instead of the clock.
+- **Audio:** an optional feeder thread, which needs threads first, so the
+  queue can be shorter. Let a title choose stereo or 5.1.
+- **Input:** rumble (`XamInputSetState`) and the chatpad.
+- **Crash reports:** symbol names on the console from a small symbol table
+  linked into the title, and a report for stack overflows (a guard page).
+- **Build:** a CI job that builds the tests and the example; versioned
+  releases with a ready-built `xex-link`.
+- **Docs:** a page per new feature, in the same style: what was seen on the
+  console, and what it was compared with.
+
+## Done
+
+See [CHANGELOG.md](CHANGELOG.md).
diff --git a/docs/wiki/Crashes-and-Debugging.md b/docs/wiki/Crashes-and-Debugging.md
index 875993e..1c5cde7 100644
--- a/docs/wiki/Crashes-and-Debugging.md
+++ b/docs/wiki/Crashes-and-Debugging.md
@@ -18,7 +18,7 @@ arguments; xsdk found this on hardware). For a fault in the title's own code
 it writes `game:/crash.txt`, then ends the title:

 ```
-FAKE-08 XEX crash: access violation (code c0000005) at 820876b0
+xexkit: title crashed: access violation (code c0000005) at 820876b0
   read of address f687cc9a
 IAR 820876b0 LR 82085bf8 CTR 00000000 CR 44000244 XER 00000000
 r0  ...
diff --git a/runtime/fault.c b/runtime/fault.c
index 67d7c4d..f6f63de 100644
--- a/runtime/fault.c
+++ b/runtime/fault.c
@@ -108,7 +108,7 @@ long xex_fault_handler(exception_pointers *pointers)
     }

     report_fd = open("game:/crash.txt", O_WRONLY | O_CREAT | O_TRUNC, 0666);
-    out("FAKE-08 XEX crash: %s (code %08x) at %08x\n", code_name(rec->code), (unsigned)rec->code,
+    out("xexkit: title crashed: %s (code %08x) at %08x\n", code_name(rec->code), (unsigned)rec->code,
         (unsigned)rec->address);
     if (rec->code == 0xc0000005 && rec->parameter_count >= 2)
         out("  %s of address %08x\n", rec->parameters[0] ? "write" : "read", (unsigned)rec->parameters[1]);
diff --git a/tests/fs/main.cpp b/tests/fs/main.cpp
index e311949..48c8b8f 100644
--- a/tests/fs/main.cpp
+++ b/tests/fs/main.cpp
@@ -51,7 +51,7 @@ static bool fail(const std::string &step) {
 // write, read back with stdio and iostream, stat, append, seek
 static bool fileRoundTrip(const std::string &dir) {
     g_failStep.clear();
-    std::string path = dir + "/fake08-xex-test.txt";
+    std::string path = dir + "/xexkit-test.txt";
     FILE *f = fopen(path.c_str(), "w");
     if (!f) return fail("fopen(w)");
     fputs("hello xbox\n", f);
@@ -83,7 +83,7 @@ static bool fileRoundTrip(const std::string &dir) {
     fclose(f);
     if (size != 17 || strcmp(buf, "xbox") != 0) { errno = 0; return fail("seek size=" + std::to_string(size)); }

-    std::string sub = dir + "/fake08-xex-dir";
+    std::string sub = dir + "/xexkit-test-dir";
     mkdir(sub.c_str(), 0777);
     struct stat sd;
     bool dirOk = stat(sub.c_str(), &sd) == 0 && S_ISDIR(sd.st_mode);
diff --git a/tests/hello/main.cpp b/tests/hello/main.cpp
index 95d3d8f..c05c755 100644
--- a/tests/hello/main.cpp
+++ b/tests/hello/main.cpp
@@ -54,7 +54,7 @@ int main(int, char **) {
     result += deepest >= 896 ? " stack896K" : " STACK-FAIL";

     printf("hello: %s\n", result.c_str());
-    xex_notify("Hello from FAKE-08 XEX (GCC)");
+    xex_notify("Hello from xexkit (GCC)");
     xex_sleep_ms(3000);
     xex_notify(result.c_str());
     xex_sleep_ms(5000);