|
|
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 - metrics - download
Length: 1040 (0x410)
Types: TextFile
Notes: UNIX file
Names: »exp.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦0a3c255ba⟧ UNIX Filesystem
└─⟦this⟧ »assm/exp.c«
exp()
{
typedef struct wd_idc_params { /* drive initialization params */
unsigned char p_optstep; /* options & step rate */
unsigned char p_headhicyl; /* heads <6:4>, hi cyl count <3:0> */
unsigned char p_cyl; /* low byte of cyl count */
unsigned char p_precomp; /* precomp cyl / 16 */
unsigned char p_reduce; /* reduced write current / 16 */
unsigned char p_sectors; /* sectors per track */
char *p_devname; /* device name for user */
int p_ntrk; /* tracks per cylinder */
int p_ncyl; /* number of cylinders */
} WDINFO;
WDINFO wdinfo[] = { /* add entries as needed */
{ SIXTEENuS, (4<<4)|(306/256), 306%256, 128/16, 128/16, NSEC,
"Seagate ST-212 4 head 10MB half-height", 4, 306 },
{ SIXTEENuS, (4<<4)|(612/256), 612%256, 128/16, 128/16, NSEC,
"MiniScribe 4 head 20MB half-height", 4, 612 },
{ SIXTEENuS, (4<<4)|(20/256), 20%256, 20/16, 20/16, NSEC,
"4 head 20 cylinder test disk", 4, 20 },
{ SIXTEENuS, (7<<4)|(704/256), 704%256, 352/16, 352/16, NSEC,
"Atasi 7 head 42MB full-height", 7, 704 }
};
}