Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
6aca84b
Add a TSR mode that boots to the desktop and serves the Runner from a…
neilrackett Oct 3, 2026
7e959fa
Withdraw a load or unload that timed out, so the ST does not run it l…
neilrackett Oct 3, 2026
ccc914b
Point TSR users whose boot drive is not GEMDRIVE at the installed acc…
neilrackett Oct 4, 2026
93ffa84
GEMDRIVE: deliver an odd-length read whole, and no more than was asked
neilrackett Oct 4, 2026
f043687
GEMDRIVE: read a program's first fixup a byte at a time
neilrackett Oct 4, 2026
39210ad
GEMDRIVE: answer Dgetpath in the byte order the ST reads
neilrackett Oct 4, 2026
7483147
GEMDRIVE: start every ST boot with no files or searches open
neilrackett Oct 4, 2026
7f26c4b
meminfo: report the running process's basepage, not TOS's header
neilrackett Oct 4, 2026
2f614ed
Add QUESTION.TOS, a known-answer test for the Runner, and ignore .DS_…
neilrackett Oct 4, 2026
ce02152
HTTP: send Retry-After with every 503
neilrackett Oct 4, 2026
d3b0fb2
HTTP: give the Runner's busy reply its message
neilrackett Oct 4, 2026
85d2203
GEMDRIVE: make C:\ current when it installs as C:, so C:\AUTO runs
neilrackett Oct 5, 2026
2d653a8
Runner: forget the accessory as soon as the ST resets
neilrackett Oct 5, 2026
43bfdc9
TSR mode docs: where it was tested, and where AUTO and the accessory …
neilrackett Oct 5, 2026
a4fcdf2
Hold SELECT at power-on to go to the Booster
neilrackett Oct 5, 2026
a7c3f2e
Merge branch 'select-booster' into tsr
neilrackett Oct 5, 2026
79afe16
Runner: say only what is true in the accessory_not_loaded message
neilrackett Oct 5, 2026
4b770f7
Fold TSR mode into [G] as the GEMDRIVE Runner, a setting on by default
neilrackett Oct 5, 2026
aa36a8c
GEMDRIVE Runner off: delete DEVOPS.ACC from the GEMDRIVE folder
neilrackett Oct 5, 2026
04225fe
HTTP: one helper per Runner precondition
neilrackett Oct 5, 2026
2086013
emul: forget the ST's session in one place; derive the menu's positions
neilrackett Oct 5, 2026
384a7e0
Cartridge: drop a redundant Dsetpath and tighten the Runner's entry
neilrackett Oct 5, 2026
8baa7f8
DEVOPS.ACC: size the strip buffer to its comment; report records the …
neilrackett Oct 5, 2026
7724588
CLI: print meminfo in one place; tidy the QUESTION build script
neilrackett Oct 5, 2026
e5f9729
Boot countdown: launch the mode launched last
neilrackett Oct 5, 2026
250bebb
Merge branch 'boot-last-mode' into tsr
neilrackett Oct 5, 2026
03b04b2
Docs: the accessory's commands wait while GEM is busy
neilrackett Oct 6, 2026
3114a35
Add the rom4 area: 1 KB the workstation writes and ST programs read
neilrackett Oct 4, 2026
0432f6f
Changelog: describe the unreleased changes
neilrackett Oct 6, 2026
9962465
Menu: a GEMDRIVE setting changed at the menu applies on this boot
neilrackett Oct 21, 2026
4fb38ab
GEMDRIVE: Fseek reads its handle first, and refuses a seek outside th…
neilrackett Oct 21, 2026
ae3fafe
GEMDRIVE: Fdatime acts on its handle's file
neilrackett Oct 21, 2026
b038fa5
GEMDRIVE: close a program's files when it ends
neilrackett Oct 21, 2026
cab1625
Mega STE: the cache off while GEMDRIVE serves a call, and at boot
neilrackett Oct 21, 2026
c28d010
Cartridge: drop two shared helpers nothing calls
neilrackett Oct 21, 2026
b1bca46
Runner hook: read the sentinel past a Mega STE's cache
neilrackett Oct 21, 2026
e343e43
DEVOPS.ACC: the Mega STE cache off while it talks to the cartridge
neilrackett Oct 21, 2026
8a39bb4
Docs: the Mega STE cache rule for cartridge code, and the changelog t…
neilrackett Oct 21, 2026
78fb1a7
GEMDRIVE: take its 16 KB out of GEMDOS's free memory at install
neilrackett Oct 21, 2026
7758b1d
GEMDRIVE: serve calls on a stack of its own, and pass the rest on unt…
neilrackett Oct 21, 2026
bc91b78
GEMDRIVE: put the XBRA header right in front of the trap entry
neilrackett Oct 21, 2026
e4268f8
Merge branch 'gemdrive-fixes' into rom4
neilrackett Oct 22, 2026
854b23b
Build with the atarist-toolkit-docker v1.5.0 installer
diegoparrilla Nov 15, 2026
4d259f7
Return the right last byte on an odd-sized GEMDRIVE read
Chati-SidecarTridge Dec 2, 2026
d5bee2d
Merge PR #24: return the right last byte on an odd-sized GEMDRIVE read
diegoparrilla Dec 2, 2026
d8d8cd4
Merge PR #23: build with the atarist-toolkit-docker v1.5.0 installer
diegoparrilla Dec 2, 2026
84cffb6
Merge PR #20: GEMDRIVE Runner, 1 KB of ROM4 for the workstation, and …
diegoparrilla Dec 2, 2026
9a0b973
Build the merged firmware for EmuMD too
diegoparrilla Dec 2, 2026
12d6618
Describe v1.2.0 as merged, and check the GEMDRIVE Runner in Hatari
diegoparrilla Dec 2, 2026
81d5b5f
Document emu_check.py's GEMDRIVE Runner checks
diegoparrilla Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
run: arm-none-eabi-gcc --version

- name: Install AtariST Toolkit Docker image
run: curl -sL https://github.com/sidecartridge/atarist-toolkit-docker/releases/download/v1.0.0/install_atarist_toolkit_docker.sh | bash
run: curl -sL https://github.com/sidecartridge/atarist-toolkit-docker/releases/download/v1.5.0/install_atarist_toolkit_docker.sh | bash

- name: Run - remove interactive
run: sed -i 's/-it//' /usr/local/bin/stcmd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run: arm-none-eabi-gcc --version

- name: Install AtariST Toolkit Docker image
run: curl -sL https://github.com/sidecartridge/atarist-toolkit-docker/releases/download/v1.0.0/install_atarist_toolkit_docker.sh | bash
run: curl -sL https://github.com/sidecartridge/atarist-toolkit-docker/releases/download/v1.5.0/install_atarist_toolkit_docker.sh | bash

- name: Run - remove interactive
run: sed -i 's/-it//' /usr/local/bin/stcmd
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ docs/epics/
cli/__pycache__/
tools/dev/logs/
tools/dev/builds/
.DS_Store

# EmuMD: the emulated microSD card, the TOS images linked from elsewhere, and
# what tools/dev/mdfw.sh generates from rp/src/sdcard.c
Expand Down
154 changes: 154 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,159 @@
# Changelog

## v1.2.0 (unreleased)

Run programs from the GEM desktop, feed data to a program while it runs,
and load programs that GEMDRIVE used to crash on.

Most of this release is Neil Rackett's work. Chati-SidecarTridge sent the
odd-sized read fix too, and theimann and p0b-UK found and pinned down the
GEMDRIVE read and seek bugs on their own machines.

### Run programs from the GEM desktop: the GEMDRIVE Runner

`[G]` now brings the Runner along. The Atari boots on through its AUTO
folder to the desktop as usual, and a desk accessory, `DEVOPS.ACC`, takes
`runner run`, `load`, `exec`, `unload` and `cd` from there. Programs started
this way find the AUTO-folder drivers, the cookie jar and GEM already
loaded; `[U]` starts too early for any of them.

- **On by default.** `Ru[n]ner` in the GEMDRIVE section of the menu shows
it, and `[N]` turns it off, which makes `[G]` plain GEMDRIVE as before.
- **Nothing to install.** The firmware writes `DEVOPS.ACC` to the GEMDRIVE
folder itself, and deletes it again when the Runner is off. With
GEMDRIVE as `C:`, GEM loads it from there; with another drive letter,
copy it to the root of your boot drive.
- **`runner status`** says whether the accessory has started. After a
`runner reset`, wait for it before the next command.
- **On the Atari**, the accessory's Desk menu entry shows the current
directory and the last command with its result.
- **Limits.** It starts plain TOS programs, not GEM ones, and `runner res`
is refused under GEM. GEM gives the accessory no turn while a dialog or
menu is open or something is being dragged, so commands wait until then.

Tested on a Mega STE with TOS 2.06, with and without an ACSI2STM hard disk,
and in Hatari with EmuTOS.

### The AUTO folder runs from GEMDRIVE

With GEMDRIVE as `C:` and no other hard disk, nothing in `C:\AUTO` ran,
because TOS looked for it on drive A:. GEMDRIVE now makes `C:` the current
drive as it installs, so AUTO-folder drivers load. With a hard disk whose
driver takes the boot drive, such as an ACSI2STM, TOS runs that drive's
AUTO folder instead.

### Programs that GEMDRIVE could not load

- **Programs with an odd file size** crashed in the loader (three bombs) or
started corrupted, because the last byte of every odd-length read arrived
wrong. They now load, and an odd-length `Fread` gets its last byte right.
- **Programs with an odd-sized symbol table** bombed in the loader with an
address error. They now load, as they do with TOS's own loader.
- **A read over 4 KB** that did not end on a 4 KB boundary could write up to
4 KB past the end of the program's buffer. It now stops where it should.
- **Files and searches left open by a crashed program** no longer pile up.
After a few crashes GEMDRIVE ran out of handles, and GEM could not even
load its accessories, until the cartridge was restarted. Every Atari boot
now starts clean.
- **The current directory** reached the Atari with its bytes swapped:
`Dgetpath` returned `\STDL` as `S\DT`.

### Files that programs open through GEMDRIVE

- **`Fseek` never worked**: the RP took the handle for the offset, so a seek
answered "invalid handle" or moved the wrong file. Programs built with
mintlib seek on every file they open, and `fopen(..., "a")` failed and left
the file locked. A seek past either end of a file is now refused with
`ERANGE`, as by TOS, instead of growing the file.
- **`Fdatime`** went by the current drive rather than the file handle, and
its "get" returned whatever was in memory. It now acts on the handle's
file: get returns the file's own date and time, and set changes them.
- **A file a program left open** when it ended, or crashed, stayed open
until the next boot, locked against every other open, including the
API's. GEMDRIVE now closes a program's files when it ends, as TOS does.
- **On a Mega STE with its cache on**, as programs that want speed run,
GEMDRIVE calls were lost or answered wrong: the cache kept old copies of
what the cartridge said. GEMDRIVE now turns the cache off for each call
it answers and back on after; the CPU speed is left alone. The cartridge
also turns it off when the Atari boots, which a reset does not.
- **The 16 KB that GEMDRIVE and the Runner live in** was still free memory
as far as TOS knew, so a program that took nearly all of it could be
given that area and overwrite them, and every program's stack started
inside it. GEMDRIVE now takes the area from TOS when it installs.
- **Programs started with `[U]` hung or crashed as they ended** when they
had used GEMDRIVE. Their calls ran on TOS's small boot-time stack, and
GEMDRIVE's work there overwrote TOS's own variables. GEMDRIVE now does
its work on a stack of its own, and a call it passes on to TOS reaches
it with every register as the program left it.

### Feed data to a running program: the rom4 area

1 KB of the cartridge, at `$FA8B00`, that the workstation writes over HTTP
(`PUT /api/v1/rom4`, or `sidecart rom4 write`) and any program on the
Atari can read while it runs, in any mode. Programs find it through shared
variables 20–22. Several writes can go in one request and are applied in
the order given, so a program can be handed a complete update.

### The boot countdown remembers your choice

When nobody pressed a key, the countdown always started `[U]`. It now
starts whichever of `[G]` and `[U]` you used last, so a power cycle comes
back the way it went, and the countdown bar says which: `Booting GEMDRIVE
in 20 s`. Until you first use `[G]` it is still `[U]`.

### Hold SELECT at power-on to go to the Booster

As in other SidecarTridge apps: hold SELECT while switching on and the
cartridge goes straight to the Booster, to install another app or update
this one.

### The setup menu

- **GEMDRIVE settings changed in the menu** — the drive letter, the
relocation address, `_memtop` and the Runner's hook vector — only took
effect from the next boot, so choosing `D:` and pressing `[G]` still
gave GEMDRIVE `C:`. `[G]` and `[U]` now use what the menu shows.

### The Runner

- **On a Mega STE with its cache on**, the Runner's commands could be
missed, or their answers lost. The ones that reach a running program,
such as `runner reset` and `runner adv meminfo`, are now seen within
about half a second whatever the program does with the cache, and
DEVOPS.ACC turns the cache off while it talks to the cartridge, for a
desktop set up to run fast. A program the accessory starts still gets
the desktop's cache.
- **`runner meminfo`** gave the address of TOS's ROM header as the running
program's basepage. It now reports the real one.
- **A `load` or `unload` that timed out** was still carried out later, when
the Atari next looked, after the API had reported it as failed. It is now
withdrawn.

### The API

- **Every 503 reply** carries `Retry-After: 1`, as documented. Three kinds
of error left it out.
- **The Runner's *busy* reply** had an empty body, so the CLI could only
print `error (503):`. It now carries the usual error message.

### For developers

- GEMDRIVE's XBRA header (`SDGD`) now sits right in front of its trap #1
entry, so tools that walk the GEMDOS chain find it and the handlers
below it.
- `QUESTION.TOS` is a known-answer test for the Runner: it writes
`ANSWER.TXT` containing `42` and exits with 42. `ROM4CHK.TOS` prints the
rom4 area to the debug stream.
- The cartridge code is at 10,076 of its 10,240 bytes.
- **The firmware runs in Hatari.** [EmuMD](https://github.com/neilrackett/emumd)
builds its C code for your computer and runs it in its fork of Hatari,
with the cartridge on the ST's port, a folder as the microSD card and the
HTTP API reachable from your computer. `tools/dev/emu_check.py` boots an
ST, an STE and a Mega STE and checks GEMDRIVE, the Runner and the API;
see `emu/README.md`. `GDTEST.TOS` (`target/atarist/test/gemdos-io`) checks
GEMDOS reads and seeks on the GEMDRIVE drive.
- CI installs `stcmd` from atarist-toolkit-docker v1.5.0.

## v1.1.0 (2026-09-17) — robustness

No new features. Things that used to fail now work, and when something does
Expand Down
Loading
Loading