-
Notifications
You must be signed in to change notification settings - Fork 78
SIO Command $E7 New Disk
Oscar Fowler edited this page Jul 25, 2020
·
6 revisions
Given the following parameters:
- Number of total sectors
- Sector Size
- Host Slot
- Device Slot
Create a new, blank disk image on the specified host.
| DCB | Value |
|---|---|
| DDEVIC | $70 |
| DUNIT | $01 |
| DCOMND | $E7 |
| DSTATS | $80 |
| DBUF | newDisk buffer (42 bytes) |
| DTIMLO | $E0 |
| DBYT | 42 |
| DAUX1 | 0 |
| DAUX2 | 0 |
union
{
struct
{
unsigned short numSectors;
unsigned short sectorSize;
unsigned char hostSlot;
unsigned char deviceSlot;
char filename[36];
};
unsigned char rawData[42];
} newDisk;
OS.dcb.ddevic=0x70;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0xE7;
OS.dcb.dstats=0x80;
OS.dcb.dbuf=newDisk.rawData;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=42;
OS.dcb.daux=0;
siov();
Copyright 2024 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD
- Home
- What is FujiNet?
- The Definition of Done
- Board bring up for FujiNet Platform.IO code
- The Complete Linux CLI Guide
- The Complete macOS CLI Guide
- Development Env for Apps
- FujiNet-Development-Guidelines
- System Quickstarts
- FujiNet Flasher
- Setting up a TNFS Server
- FujiNet Configuration File: fnconfig.ini
- AppKey Registry - SIO Command $DC Open App Key
- CP-M Support
- BBS
- Official Hardware Versions
- Prototype Board Revisions
- FujiNet Development Guidelines
- Atari Programming
- Apple Programming
- C64 Programming
- ADAM Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine