I found this whilst surfing the web, I found it useful and as it was not on Aminet,
here it is. It contains assembler function, callable from a C progrm to access the
Amiga parallel port.
You can use the supplied software with DICE, PhxAss and ManxC. I could not get it to work
with Storm C but I have only recently got it on my Developer CD.
Original Readme below.
pardemo.h - Demo source
pardemo.c - Demo source
PARdemo.doc - Demo documentation
Port.txt - 8520 CIA and port overview, precautions, and guidelines
ReadMe
The following C functions are provided:
getport -- Get parallel port access
freeport -- Free parallel port access
portdir -- Set parallel port data direction (0/1 = Input/Output)
portddr -- Set parallel port data direction bits ($00-$FF)
rdport -- Read parallel port data ($00-$FF)
wrport -- Write parallel port data ($00-$FF)
busydir -- Set BUSY control line data direction (0/1 = Input/Output)
rdbusy -- Read BUSY control line state (0/1 = Low/High)
setbusy -- Set BUSY control line state (0/1 = Low/High)
poutdir -- Set POUT control line data direction (0/1 = Input/Output)
rdpout -- Read POUT control line state (0/1 = Low/High)
setpout -- Set POUT control line state (0/1 = Low/High)
seldir -- Set SEL control line data direction (0/1 = Input/Output)
rdsel -- Read SEL control line state (0/1 = Low/High)
setsel -- Set SEL control line state (0/1 = Low/High)
Tom Handley / 18 June 93
BIX : thandley
Internet: thandley@bix.com or thandley@nesbbx.rain.com
|