From: cpg Date: Sun, 19 Nov 2000 01:53:29 +0000 (+0000) Subject: added definition for DCB X-Git-Tag: V2.12.0~3082 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ad8b34061a8f5b3ad68c6409d2f4a76eb4011fd;p=cc65 added definition for DCB git-svn-id: svn://svn.cc65.org/cc65/trunk@446 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/atari.h b/include/atari.h index 2238c8f84..2eb745ec7 100644 --- a/include/atari.h +++ b/include/atari.h @@ -171,5 +171,20 @@ extern unsigned int get_ostype(void); /* get ROM version */ #include <_antic.h> #define ANTIC (*(struct __antic*)0xD400) +/* device control block */ +struct __dcb { + unsigned char device; /* device id */ + unsigned char unit; /* unix number */ + unsigned char command; /* command */ + unsigned char status; /* command type / status return */ + void *buffer; /* pointer to buffer */ + unsigned char timeout; /* device timeout in seconds */ + unsigned char unused; + unsigned int xfersize; /* # of bytes to transfer */ + unsigned char aux1; /* 1st command auxiliary byte */ + unsigned char aux2; /* 2nd command auxiliary byte */ +}; +#define DCB (*(struct __dcb *)0x300) + /* End of atari.h */ #endif /* #ifndef _ATARI_H */