ADOS is a single DOS for the SAM Coupé. It takes the place of SAMDOS, B-DOS (ATOM Classic & Trinity Ethernet Interface) and AL-BDOS (ATOM-Lite), reads and writes MasterDOS disks, and adds PC FAT16 and FAT32 cards and drives. Load it once and every drive you have gets its own letter.
ADOS fits in one 16K DOS page. Its start-up code is thrown away after boot and the memory is reused for buffers, so it needs no more memory than SAMDOS.
The DOS version is given by the DVAR 7 variable manipulated by 'DOS type' and divided by 10.
DOS types are B-DOS = 0+10, SamDOS=0+0, MasterDOS =20+0, A-DOS=50+0
So for A-DOS 1.1, PRINT PEEK DVAR 7 is 61, minus 50, add 0 and divided by 10 gives 1.1.
For B-DOS 1.5, PRINT PEEK DVAR 7 is 5, minus 0, add 10 and divided by 10 gives 1.5.
For MasterDOS 1.4, PRINT PEEK DVAR 7 is 34, minus 20, add 0 and divided by 10 gives 1.4.
For SamDOS 2, PRINT PEEK DVAR 7 is 20, minus 0, add 0 and divided by 10 gives 2.0.
Available from https://github.com/adrianpbrown/SamCoupe-ADOS-Release
Features
- One DOS for all storage: floppy drives, the Atom Classic and Atom Lite IDE interfaces, and the Trinity SD card interface.
- Drive letters: A: and B: are the floppies; every BDOS card and FAT partition gets the next letter from C:.
- Compatible: disks made by SAMDOS, MasterDOS, BDOS and AL-BDOS work as they are. Error numbers match SAMDOS, so programs that trap DOS errors keep working.
- MasterDOS directories: subdirectories, paths and date stamps on SAM disks.
- BDOS records: 800K records on a BDOS card or drive, each used like a floppy. BDOS programs see the same DVARs and hooks they expect.
- PC cards and drives: FAT16 and FAT32 with long file names (up to 255 characters with the path) and folders. A PC can read what ADOS saves. SAM file details are kept in a small
.infofile next to each file. - COPY between any drives: single files, wildcards and whole disks, with a progress percentage.
- Disk images on FAT: an 800K
.MGTfile can be opened as a folder or mounted on a drive letter. - Real-time clocks: files are dated from an Atom Lite, SAMBUS or Dallas clock when one is fitted.
- For machine code: file streams with seeking, long-name hooks, and a direct entry point for programs that have taken over the machine.
Supported hardware
| Device | Media | Letter |
|---|---|---|
| Floppy drives 1 and 2 | 800K SAM disks | A: and B: |
| Atom Lite (left and right bays, master and slave) | CompactFlash | C: onwards, in the order found |
| Atom Classic (master and slave) | IDE hard drive or CompactFlash | |
| Trinity | SD and SDHC cards | |
| Atom Lite, SAMBUS or Dallas clock | Date and time stamps |
Cards made on a PC must use an MBR partition table (or no partition table at all) and FAT16 or FAT32. GPT, exFAT and NTFS are not supported. SDHC on the Trinity has not been tested on real hardware yet.