Epic 01: Custom GEMDRIVE emulation#1
Merged
diegoparrilla merged 1 commit intomainfrom Apr 30, 2026
Merged
Conversation
Port GEMDRIVE emulation from md-drives-emulator into md-devops, with two deliberate divergences: - Default SD subfolder is /devops (was /hd), user-configurable. - m68k GEMDRIVE code is fully relocatable to a runtime-chosen RAM address (default screen_base - 8 KB), and the relocated start is adopted as the new _memtop so TOS does not allocate over the resident code. _memtop is also independently overridable. Atari ST side (target/atarist/src): - New gemdrive.s blob placed at cartridge offset 0x0800 (6 KB), PC-relative throughout so it survives relocation. - main.s gains gemdrive_init: copies the blob to the configured RAM address at boot and patches _memtop. - Linker script renamed userfw.ld -> devops.ld; userfw.s removed. RP2040 side (rp/src): - New gemdrive.c / gemdrive.h implementing the GEMDOS hooks. - aconfig adds GEMDRIVE_FOLDER, GEMDRIVE_RELOC_ADDR, DEVOPS_MEMTOP. - Menu/setup terminal ported from md-drives-emulator: term command level dispatcher, dual-font OLED strip, ESC p/q reverse-video title, browsable SD-card folder selector (sdcard_loadDirectory + navigate_directory pager), [E]xit wired to DISPLAY_COMMAND_START. Build: BOOT.BIN at 7112 / 8192 bytes; rp UF2 builds clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port GEMDRIVE emulation from md-drives-emulator into md-devops, with two deliberate divergences:
Atari ST side (target/atarist/src):
RP2040 side (rp/src):
Build: BOOT.BIN at 7112 / 8192 bytes; rp UF2 builds clean.