|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 746 (0x2ea) Types: TextFile Notes: UNIX file Names: »cu.h«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code └─⟦f4b8d8c84⟧ UNIX Filesystem └─ ⟦this⟧ »cmd/cu/cu.h«
/* * CU downloader. * Packet structure. */ #define NPKT 256 /* These definitions depend on table in cudld.c */ #define STX 002 /* Start of packet */ #define ETX 003 /* End of packet */ #define DLE 022 /* Data line escape */ typedef struct PKT { unsigned p_len; /* Length of packet */ int p_flags; /* Flags for errors, etc */ char p_type; /* Packet type: I, F, A, E, N */ char p_seq[2]; /* Canonical integer sequence number */ char p_data[NPKT]; /* Information packet data */ char p_crc[2]; /* Canonical CRC */ } PKT; /* Flags in `p_flags' */ #define PCRC 01 /* CRC error */ #define PTOUT 02 /* Time out error */ #define TLEN 20 /* Timeout time */ PKT *getpkt(); PKT *rcvpkt(); extern PKT xpkt; extern PKT rpkt;