-
Notifications
You must be signed in to change notification settings - Fork 68
N: SIO Command 'S' Status
Thomas Cherryhomes edited this page May 9, 2020
·
3 revisions
Return the status of the currently opened protocol channel, in the following format:
Offset | Description |
---|---|
0 | LO Byte of # of bytes waiting |
1 | HI Byte of # of bytes waiting |
2 | 0=Disconnected, 1=Connected |
3 | Extended Error code |
It is expected that the buffer point to the DVSTAT location in the OS ($02EA)
DCB | Value |
---|---|
DDEVIC | $71 |
DUNIT | $01 - $04 |
DCOMND | $53 'S' |
DSTATS | $40 |
DBUF | DVSTAT |
DTIMLO | $0F |
DBYT | 4 |
DAUX1 | N: Status DAUX1 Values |
DAUX2 | N: Status DAUX2 Values |
// Get # of bytes waiting
OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd='S';
OS.dcb.dstats=0x40;
OS.dcb.dbuf=&status;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=4;
OS.dcb.daux=0;
siov();
bw=(status[1]<<8)+status[0];
connected=status[2];
Put other related command links here.
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