|
|
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: 315 (0x13b)
Types: TextFile
Notes: UNIX file
Names: »fd.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦2d53db1df⟧ UNIX Filesystem
└─⟦this⟧ »frankh/src/fd.c«
/*
*
*/
#include <stdio.h>
#include <sgtty.h>
#include <mtioctl.h>
main()
{
register int fd;
int com;
com = 0x181;
fd = open("/dev/fd1",2);
ioctl(fd, com, NULL);
close(fd);
}
/*
inw(fd, paddr)
int fd;
int paddr;
{
struct pio pio;
pio.paddr = paddr;
ioctl(fd, PIOINW, &pio);
return pio.pdata;
}
*/