Download Print this page

Commodore Amiga A500 Technical Reference Manual page 64

Hide thumbs Also See for Amiga A500:

Advertisement

longword
description
0
string with dos handler name
1
string with exec device name
2
unit number (for OpenDevice)
3
flags (for OpenDevice)
4
#
of longwords in rest of environment
5-n
file handler environment (see librariestfile-
hand1er.h)
RESULTS
deviceNode
-
pointer t o initialize device node structure, or null if
there was not enough memory.
EXAMPLES
/*
set up a 3.5" amiga format floppy drive for unit 1
*/
char execName[]
=
"trackdisk.device";
char dosName[]
=
"dfl
";
ULONG parmPkt[]
=
[
(ULONG) dosName,
(ULONG) execName,
1,
/*
unit number
*/
0,
/*
OpenDevice flags
*/
/*
here is the environment block
*/
11,
/*
table upper bound
*/
512>>2.
/*
#
longwords in a block
*/
0,
/*
sector origin
-
unused
*/
2 ,
/*
number of surfaces
*/
1.
/*
secs per logical block
-
unused
*/
11,
/*
secs per track
*/
2,
/*
reserved blocks
-
2 boot blocks
*/
0.
/* ??
-
unused
*/
.O,
/*
interleave
*/
0,
/*
lower cylinder
*/
79,
/*
upper cylinder
*/
5,
/*
number of buffers
*/
l:
struct Device Node *node, *MakeDosNode();
node
=
MakeDosNode( parmPkt
):
BUGS
SEE ALSO
AddDosNode

Advertisement

loading

This manual is also suitable for:

Amiga a2000