Table of Contents
This is a command for Device $70 - The FujiNet Device itself (see SIO-Commands-for-Device-ID-$70).
Hash Input ($C8)
Description
Puts data in the FujiNet's input buffer for hashing by Hash Compute, which should be the function called after this command has input all the data to hash. This command can be called as many times as needed to input data at up to 65535 bytes at a time.
Because DAUX is used to tell the FujiNet how many bytes to expect, both DBUF and DAUX must be set to the same value.
Firmware version required: 1.1 (2023.08.22) +
Parameters
| DCB | Value |
|---|---|
| DDEVIC | $70 |
| DUNIT | $01 |
| DCOMND | $C8 |
| DSTATS | $80 |
| DBUF | A buffer as big as specified by DBYT/DAUX |
| DTIMLO | $03 |
| DBYT | number of bytes to input |
| DAUX1 | number of bytes to input (LO) |
| DAUX2 | number of bytes to input (HI) |
Examples
CC65
unsigned char hash_input(char* buf, unsigned short len)
{
OS.dcb.ddevic = 0x70;
OS.dcb.dunit = 1;
OS.dcb.dcomnd = 0xC8;
OS.dcb.dstats = 0x80;
OS.dcb.dbuf = buf;
OS.dcb.dtimlo = 0x03;
OS.dcb.dbyt = len;
OS.dcb.daux = len;
siov();
return OS.dcb.dstats; // Return SIO error or success.
}
Related Functions
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- 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 - AppKey-Registry-Page
- CP-M Support
- BBS
- Official Hardware Versions
- Prototype Board Revisions
- FujiNet Development Guidelines
- The Network Protocol Handbook
- Atari Programming
- Apple Programming
- C64 Programming
- ADAM Programming
- Intellivision Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine
Copyright 2026 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD